3v4l.org

run code in 300+ PHP versions simultaneously
<?php $left = '1071.000000'; $right = '357.500000'; bcscale(100); echo bcmod($left, $right); echo PHP_EOL; echo bcpowmod($left, 2, $right); echo PHP_EOL; echo $div = bcdiv($left, $right, 0); echo PHP_EOL; echo $mul = bcmul($div, $right, 100); echo PHP_EOL; echo $mod = bcsub($left, $mul, 100); echo PHP_EOL; echo 'ccc'; echo bcmod( '1071', '357.5' );
Output for git.master, git.master_jit, rfc.property-hooks
356.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Fatal error: Uncaught ValueError: bcpowmod(): Argument #1 ($num) cannot have a fractional part in /in/HXUHg:9 Stack trace: #0 /in/HXUHg(9): bcpowmod('1071.000000', '2', '357.500000') #1 {main} thrown in /in/HXUHg on line 9
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
56.68 ms | 401 KiB | 8 Q