3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo{ public $data = array('foo'); } $foo = new Foo; $json = json_encode($foo); var_dump($foo, $json, json_decode($json), (array) $foo;
Output for 5.4.18
Parse error: syntax error, unexpected ';' in /in/NPbKK on line 9
Process exited with code 255.
Output for 5.3.0 - 5.4.17
Parse error: syntax error, unexpected ';' in /in/RT5F2 on line 9
Process exited with code 255.