3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo var_export(10 / 3, true) . "\n"; echo var_export(3.33, true) . "\n"; echo var_export(3.0, true) . "\n"; echo "\n"; echo var_export(round(10 / 3, 14), true) . "\n"; echo var_export(round(3.33, 14), true) . "\n"; echo var_export(round(3.0, 14), true) . "\n"; echo "\n"; echo sprintf('%F', 10 / 3) . "\n"; echo sprintf('%F', 3.33) . "\n"; echo sprintf('%F', 3.0) . "\n"; echo "\n"; echo sprintf('%.14F', 10 / 3) . "\n"; echo sprintf('%.14F', 3.33) . "\n"; echo sprintf('%.14F', 3.0) . "\n"; echo "\n"; echo rtrim(sprintf('%.14F', 10 / 3), '0') . "\n"; echo rtrim(sprintf('%.14F', 3.33), '0') . "\n"; echo rtrim(sprintf('%.14F', 3.0), '0') . "\n";
Output for git.master, git.master_jit, rfc.property-hooks
3.3333333333333335 3.33 3.0 3.33333333333333 3.33 3.0 3.333333 3.330000 3.000000 3.33333333333333 3.33000000000000 3.00000000000000 3.33333333333333 3.33 3.

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:
51.63 ms | 401 KiB | 8 Q