3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public var $bar; } for($i=0; $i<10000; $i++) { $obj = new Foo(); $obj->bar = $i; }
Output for 5.4.18
Parse error: syntax error, unexpected 'var' (T_VAR), expecting variable (T_VARIABLE) in /in/rkiZd on line 4
Process exited with code 255.
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected 'var' (T_VAR), expecting variable (T_VARIABLE) in /in/3uFbR on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_VAR, expecting T_VARIABLE in /in/3uFbR on line 4
Process exited with code 255.