3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'Using default precision:',PHP_EOL; $time = $_SERVER['REQUEST_TIME_FLOAT']; var_dump(ini_get('precision')); var_dump($time); $time_string = addslashes($time); var_dump($time_string); $recast_time = (float) $time_string; var_dump($recast_time); var_dump($time === $recast_time); echo PHP_EOL,'Using substantially higher precision:',PHP_EOL; ini_set('precision', 50); $time = $_SERVER['REQUEST_TIME_FLOAT']; var_dump(ini_get('precision')); var_dump($time); $time_string = addslashes($time); var_dump($time_string); $recast_time = (float) $time_string; var_dump($recast_time); var_dump($time === $recast_time);
Output for git.master, git.master_jit, rfc.property-hooks
Using default precision: string(2) "14" float(1574679883.0001) string(15) "1574679883.0001" float(1574679883.0001) bool(true) Using substantially higher precision: string(2) "50" float(1574679883.0001) string(33) "1574679883.0000998973846435546875" float(1574679883.0001) bool(true)

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:
32.98 ms | 406 KiB | 5 Q