3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function somefunc() { return 'somestring'; } $time = microtime(1); $i = 0; while($i++ < 1000000) 'somestring',somefunc(),'somestring'; echo (microtime(1)-$time)." seconds for commas"; echo "\n"; $time = microtime(1); $i = 0; while($i++ < 1000000) 'somestring'.somefunc().'somestring'; echo (microtime(1)-$time)." seconds for dot";
Output for 5.3.0 - 5.4.8
Parse error: syntax error, unexpected ',' in /in/uYm2D on line 8
Process exited with code 255.