3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( (string) new BcMath\Number(5)->sub(4.2, 1), bcsub(5, 4.2, 1), );
Output for git.master_jit, git.master
Deprecated: Implicit conversion from float 4.2 to int loses precision in /in/Bi5Kl on line 4 string(3) "1.0" string(3) "0.8"
Output for rfc.property-hooks
Parse error: syntax error, unexpected token "->", expecting ")" in /in/Bi5Kl on line 4
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:
178.79 ms | 1000 KiB | 7 Q