3v4l.org

run code in 300+ PHP versions simultaneously
<?php $left = '1071'; $right = '357.5'; bcscale(100); echo bcmod($left, $right); echo PHP_EOL; echo $div = bcdiv($left, $right, 100); 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 2.9958041958041958041958041958041958041958041958041958041958041958041958041958041958041958041958041958 1070.9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999985 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015 ccc356.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

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:
43.09 ms | 402 KiB | 8 Q