3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo var_export(20 / 3 * 1e20, true), "\n"; echo var_export(6.66, true), "\n"; echo var_export(6.0, true), "\n"; echo "\n"; echo (string) 20 / 3 * 1e20, "\n"; echo (string) 6.66, "\n"; echo (string) 6.0, "\n"; echo "\n"; echo (string) round(20 / 3 * 1e20, 14), "\n"; echo (string) round(6.66, 14), "\n"; echo (string) round(6.0, 14), "\n"; echo "\n"; echo rtrim(sprintf('%.14F', 20 / 3 * 1e20), '0.'), "\n"; echo rtrim(sprintf('%.14F', 6.66), '0.'), "\n"; echo rtrim(sprintf('%.14F', 6.0), '0.'), "\n";
Output for git.master, git.master_jit, rfc.property-hooks
6.666666666666668E+20 6.66 6.0 6.6666666666667E+20 6.66 6 6.6666666666667E+20 6.66 6 666666666666666754048 6.66 6

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