3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php Abstract Class Object {} Class Point extends Object { private $a = 'a'; __construct() { echo $a; } } for($i=1; $i<100; $i++) $p = new Point();
Output for 5.4.18
Parse error: syntax error, unexpected '__construct' (T_STRING), expecting function (T_FUNCTION) in /in/OM2WA on line 5
Process exited with code 255.
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected '__construct' (T_STRING), expecting function (T_FUNCTION) in /in/JcWvr on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in /in/JcWvr on line 5
Process exited with code 255.