3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo var_export(20 / 3, true) . "\n"; echo var_export(6.66, true) . "\n"; echo var_export(6.0, true) . "\n"; echo "\n"; function format($f) { $p = (int) ini_get('precision'); $out = var_export(round($f, $p)); if (($pos = str_pos('.', $out)) !== FALSE && strlen($out) - $pos > $p) { } } $p = (int) ini_get('precision'); echo var_export(round(20 / 3, $p)) . "\n"; echo var_export(round(6.66, $p)) . "\n"; echo var_export(round(6.0, $p)) . "\n";
Output for git.master, git.master_jit, rfc.property-hooks
6.666666666666667 6.66 6.0 6.66666666666667 6.66 6.0

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