3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $f = array( '<?php', ' public function __construct()', ); var_dump(preg_grep('/^ public function __construct\(/', $f));
based on 50SfG
Output for 4.3.0 - 7.2.0
array(1) { [1]=> string(33) " public function __construct()" }