3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function somefunc() { return 'somestring'; } ob_start(); $time = microtime(1); $i = 0; while($i++ < 1000000) echo'somestring',somefunc(),'somestring'; ob_end_clean(); echo (microtime(1)-$time)." seconds for commas"; echo "\n"; ob_start(); $time = microtime(1); $i = 0; while($i++ < 1000000) echo'somestring'.somefunc().'somestring'; ob_end_clean(); echo (microtime(1)-$time)." seconds for dot";