3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo var_export(20 / 3 * 1e6, true) . "\n"; echo var_export(6.66, true) . "\n"; echo var_export(6.0, true) . "\n"; function format($f) { return rtrim(rtrim(number_format($f, ini_get('precision'), '.', ''), '0'), '.'); } echo format(20/3) . "\n"; echo format(200000000 / 3) . "\n"; echo 200000000 / 3 . "\n"; echo format(6.66) . "\n"; echo format(6.0) . "\n"; echo format(60.0) . "\n";
Output for git.master, git.master_jit, rfc.property-hooks
6666666.666666667 6.66 6.0 6.66666666666667 66666666.66666666418314 66666666.666667 6.66 6 60

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.17 ms | 401 KiB | 8 Q