3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); for ($i = 0; $i < 10000; $i++) { $a[$i] = 1; } $start = microtime(true); $count = count($a); for ($i = 0; $i < $count; $i++) {} echo "Completed in ", microtime(true) - $start, " Seconds\n"; $start = microtime(true); foreach ($a as $k => $v) {} echo "Completed in ", microtime(true) - $start, " Seconds\n"; $start = microtime(true); foreach ($a as $k => &$v) {} echo "Completed in ", microtime(true) - $start, " Seconds\n";
Output for git.master
Completed in 9.2029571533203E-5 Seconds Completed in 8.2015991210938E-5 Seconds Completed in 0.0002748966217041 Seconds
Output for git.master_jit
Completed in 5.1975250244141E-5 Seconds Completed in 6.9141387939453E-5 Seconds Completed in 0.00026297569274902 Seconds

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