3v4l.org

run code in 300+ PHP versions simultaneously
<?php function wer($x) { print_r($x); $x[] = 'ttt'' } $e = 'ert'; call_user_func('wer', [&$e]); print_r($x);
Output for 7.0.0 - 7.0.31, 7.1.0 - 7.1.21, 7.2.0 - 7.2.9
Parse error: syntax error, unexpected ''' (T_CONSTANT_ENCAPSED_STRING) in /in/eSqhW on line 6
Process exited with code 255.

preferences:
203.91 ms | 1395 KiB | 71 Q