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'; list($n,$p) = microtime(); echo round((($n+$p)-$x-$y)*1000); list($x,$y) = microtime(); $a = ''; for($i=0; $i<1000000; $i++) $a = "yay"; list($n,$p) = microtime(); echo round((($n+$p)-$x-$y)*1000);
Output for 4.3.0 - 7.1.0
00