mirror of
https://github.com/php/php-src.git
synced 2026-04-25 17:08:14 +02:00
3a4b89661e
This is barely used and more of a hinderence than anything else Closes GH-6712
22 lines
274 B
PHP
22 lines
274 B
PHP
--TEST--
|
|
Various pow() tests
|
|
--FILE--
|
|
<?php
|
|
|
|
$x = 2;
|
|
$x **= 3;
|
|
|
|
var_dump( -3 ** 2 === -9);
|
|
var_dump( (-3) **2 === 9);
|
|
var_dump( 2 ** 3 ** 2 === 512);
|
|
var_dump( (2 ** 3) ** 2 === 64);
|
|
var_dump( $x === 8);
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(true)
|
|
bool(true)
|
|
bool(true)
|
|
bool(true)
|