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));

preferences:
49.59 ms | 402 KiB | 5 Q