3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.18, 5.4.0 - 5.4.8
Parse error: syntax error, unexpected ',' in /in/uYm2D on line 8
Process exited with code 255.

preferences:
170.39 ms | 1395 KiB | 35 Q