3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php list($x,$y) = microtime(); $a = ''; for($i=0; $i<1000000; $i++) $a = 'yay'; $t = microtime(true); echo round((($n+$p)-$x-$y)*1000); list($x,$y) = microtime(); $a = ''; for($i=0; $i<1000000; $i++) $a = "yay"; echo round(microtime(true)-$t);
Output for 5.0.4 - 5.0.5, 7.0.0 - 7.1.0
Notice: Undefined variable: n in /in/0ariD on line 7 Notice: Undefined variable: p in /in/0ariD on line 7 00
Output for 5.1.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: p in /in/0ariD on line 7 Notice: Undefined variable: n in /in/0ariD on line 7 00
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: n in /in/0ariD on line 7 Notice: Undefined variable: p in /in/0ariD on line 7 00