3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public $a_a; protected $a_p; } class B extends A { protected $b_p; public static $b_s; } $ref = new ReflectionClass('B'); foreach ($ref->getProperties(ReflectionProperty::IS_PUBLIC | ReflectionProperty::IS_PROTECTED ~ ReflectionProperty::IS_STATIC) as $prop) { print $prop->getName() . "\n"; }
Output for 5.3.0 - 5.4.23
Parse error: syntax error, unexpected '~' in /in/4BOm4 on line 11
Process exited with code 255.