3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = microtime(true); $array = []; for($i = 0; $i < 1000000; $i++) { $array[] = $i; } print "[] ".(microtime(true) - $t); print "\n"; $t = microtime(true); $array = []; for($i = 0; $i < 1000000; $i++) { array_push($array, $i); } print "array_push ".(microtime(true) - $t);
Output for git.master
[] 0.044496059417725 array_push 0.034764051437378
Output for git.master_jit
[] 0.012659788131714 array_push 0.021644830703735
Output for rfc.property-hooks
[] 0.044238090515137 array_push 0.032917976379395

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:
26.96 ms | 407 KiB | 5 Q