3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = str_repeat('foo', 500000); $y = 'bar'; $before = microtime(1); $x = $x . $y; printf('%f'."\n", microtime(1) - $before); $x = str_repeat('foo', 500000); $y = 'bar'; $before = microtime(1); $x .= $y; printf('%f'."\n", microtime(1) - $before);

preferences:
34.05 ms | 402 KiB | 5 Q