3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = '\'\\\'test\\\'\',\'\\\'te\$t2\\\'\',\'\"test3\"\''; $array = eval("[\"" . $string . "\"]");
based on ZDVS5
Output for 5.4.2 - 5.4.10, 7.0.0 - 7.2.0
Parse error: syntax error, unexpected end of file in /in/hqXhC(4) : eval()'d code on line 1
Process exited with code 255.
Output for 5.4.11 - 5.6.21
Parse error: syntax error, unexpected end of file in /in/hqXhC(4) : eval()'d code on line 1
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/hqXhC(4) : eval()'d code on line 1
Process exited with code 255.