3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $pf = array( 'a' => 1, 'b' => 2 ); print_r( $pf); class tst { $aa = 1; $bb = 2; } ?>
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected '$aa' (T_VARIABLE), expecting function (T_FUNCTION) in /in/qAoCE on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /in/qAoCE on line 11
Process exited with code 255.