3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xpnd($scientific, $precision){ # expand from scientific notation if(is_int($scientific)){ #don't convert integers return $scientific; } return sprintf("%.".$precision."F", $scientific); } echo "1 - ".bcdiv(0.0000967, 2, 10)."\n"; echo "2 - ".(40075036/86164.098903691)."\n"; echo "3 - ".bcdiv(xpnd(0.0000967, 10), 2, 10)."\n";
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ValueError: bcdiv(): Argument #1 ($num1) is not well-formed in /in/0VJ07:9 Stack trace: #0 /in/0VJ07(9): bcdiv('9.67E-5', '2', 10) #1 {main} thrown in /in/0VJ07 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:
32.04 ms | 401 KiB | 8 Q