3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function e($o){return json_decode(preg_replace('/\\\u0000[*a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*\\\u0000/', '', json_encode((array) $o)), 1)} class Foo { public $bar = 'barValue'; protected $baz = 'bazValue'; private $biz = 'bizValue'; } $foo = new Foo(); var_dump(e($foo));
Output for 5.3.0 - 5.4.20
Parse error: syntax error, unexpected '}' in /in/8Ic3Z on line 3
Process exited with code 255.