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/QciFu on line 6
Process exited with code 255.

preferences:
171.76 ms | 1387 KiB | 71 Q