3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $f = array( '<?php', ' public function __construct()', ); var_dump(preg_grep('/^ public function __construct\(/', $input));
Output for 5.2.0 - 7.1.0
Notice: Undefined variable: input in /in/50SfG on line 6 Warning: preg_grep() expects parameter 2 to be array, null given in /in/50SfG on line 6 NULL
Output for 5.0.4 - 5.1.6
Notice: Undefined variable: input in /in/50SfG on line 6 Warning: preg_grep(): Second argument to preg_grep() should be an array in /in/50SfG on line 6 NULL
Output for 4.3.11 - 5.0.3
Notice: Undefined variable: input in /in/50SfG on line 6 Warning: preg_grep(): Second argument to preg_grep() should be an array in /in/50SfG on line 6 NULL
Output for 4.3.0 - 4.3.10
Notice: Undefined variable: input in /in/50SfG on line 6 Warning: Second argument to preg_grep() should be an array in /in/50SfG on line 6 NULL