3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bar = 1; public function __construct() { unset($this->bar); } } $foo = new Foo; $reflection new ReflectionObject($foo); var_dump($reflection->getProperties());
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected 'new' (T_NEW) in /in/qBfme on line 14
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_NEW in /in/qBfme on line 14
Process exited with code 255.

preferences:
191.29 ms | 1395 KiB | 66 Q