3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = microtime(true); for ($i = 0; $i <= 10000000; $i++) { chr(0); } $time2 = microtime(true); echo $time2 - $time; echo "\r\n"; class FOO { const BAR = ''; public function stats() { $time = microtime(true); for ($i = 0; $i <= 10000000; $i++) { self::BAR; } $time2 = microtime(true); echo $time2 - $time; } } $foo = new FOO(); $foo->stats();

Abusive script

This script was stopped while abusing our resources

Output for git.master
0.030747175216675 0.030513048171997
Output for git.master_jit
0.030784130096436 0.03095817565918

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