3v4l.org

run code in 200+ 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.3.0 - 5.4.18
Parse error: syntax error, unexpected ';' in /in/NPbKK on line 9
Process exited with code 255.