3v4l.org

run code in 300+ PHP versions simultaneously
<?php // https://bugs.php.net/bug.php?id=66011 // Test script as provided in original bug report $a = strval(round(1 / 3, 2)); var_dump($a, serialize($a)); // Code which does show this behaviour // Behaviour as expected, see the warning as http://php.net/manual/en/language.types.float.php $a = round(1 / 3, 2); var_dump($a, serialize($a));
Output for git.master, git.master_jit, rfc.property-hooks
string(4) "0.33" string(11) "s:4:"0.33";" float(0.33) string(7) "d:0.33;"

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