3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function filter() { return array_filter(array('foo' => 42, 'bar' => 50), function ($val) { return $val == 50; }); } function map() { return array_map(function ($val) { return $val*2; }, array('foo' => 84, 'bar' => 25)); } for ($i = 0; $i < 100; $i++) { filter(); map(); } var_dump(filter(), bar());
based on dgldU
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function bar() in /in/7NQMs:15 Stack trace: #0 {main} thrown in /in/7NQMs on line 15
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Call to undefined function bar() in /in/7NQMs on line 15
Process exited with code 255.