3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class foo { public $values; public function __construct(array $values) { $this->values = $values; } } $string = '\'\\\'test\\\'\',\'\\\'te\$t2\\\'\',\'\"test3\"\''; $array = eval("[" . $string . "];"); print_r($array);
based on lojOq
Output for 5.4.2 - 7.2.0
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/k79pi(13) : eval()'d code on line 1
Process exited with code 255.