3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; $start = microtime(true); $date = new DateTime('2018-02-13'); $period = '+5 days'; while ($i++ < 10000) { $date->modify($period); } $end = microtime(true); echo $date->format('Y-m-d H:i:s'), PHP_EOL; echo $end - $start, PHP_EOL; $i = 0; $start = microtime(true); $date = new DateTime('2018-02-13'); $period = new DateInterval('P5D'); while ($i++ < 10000) { $date->add($period); } $end = microtime(true); echo $date->format('Y-m-d H:i:s'), PHP_EOL; echo $end - $start, PHP_EOL;
Output for git.master_jit
2155-01-06 00:00:00 0.01839017868042 2155-01-06 00:00:00 0.0092141628265381
Output for git.master
2155-01-06 00:00:00 0.020272970199585 2155-01-06 00:00:00 0.016193151473999
Output for rfc.property-hooks
2155-01-06 00:00:00 0.022876024246216 2155-01-06 00:00:00 0.018187046051025

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:
86.77 ms | 408 KiB | 5 Q