3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = array(array("Price" => 66), array("Price" => 99)); function extractPrice($priceType) { $modifier = 10; return function($guestPrice) use($priceType, $modifier) { return $guestPrice[$priceType]*$modifier); }; } var_dump(array_map($extractPrice('Price'), $data)));
Output for 5.3.0 - 5.4.22
Parse error: syntax error, unexpected ')' in /in/RGM0X on line 8
Process exited with code 255.