3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Test { public static function test() { $main_category_currency = 1; $children = array( array('id_category'=>10), array('id_category'=>15), ); function map($child) { return $child['id_category']; } return array_unique(array_merge( array($main_category_currency), array_map("map",$children) )); } } var_dump(Test::test());
Output for 5.3.0 - 5.4.23
Fatal error: Constructor Test::test() cannot be static in /in/YlUlY on line 20
Process exited with code 255.