3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Baz { protected $foo; } $data = array('foo' => 'bar'); var_dump((Baz) $data);
Output for 5.4.13 - 5.4.14
Parse error: syntax error, unexpected '$data' (T_VARIABLE) in /in/4GhI4 on line 10
Process exited with code 255.
Output for 5.4.0 - 5.4.12
Parse error: syntax error, unexpected '$data' (T_VARIABLE) in vOXXL on line 10
Process exited with code 255.
Output for 5.3.23 - 5.3.24
Parse error: syntax error, unexpected T_VARIABLE in /in/4GhI4 on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.22
Parse error: syntax error, unexpected T_VARIABLE in vOXXL on line 10
Process exited with code 255.