1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 17:08:14 +02:00
Files
archived-php-src/ext/standard/tests/math/pow-operator.phpt
T
George Peter Banyard 3a4b89661e Remove quicktester
This is barely used and more of a hinderence than anything else

Closes GH-6712
2021-02-25 17:39:31 +00:00

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)