3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class X{ public function createCost() { $cost_example = array(); function checkDescription($array_item) { return $array_item; } $array_mapped = array_map('checkDescription', $cost_example); } } $x = new X(); $x->createCost();
based on 9a9Kr
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0