3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = Array ( [1] => Array ( [id] => 1 [name] => Longline T-Shirt In Fake Linen With All Over Floral Print [price] => 18.11 [quantity] => 1 [attributes] => Array ( ) [conditions] => Array ( ) ) [3] => Array ( [id] => 3 [name] => Longline T-Shirt With All Over Aztec Print [price] => 16.99 [quantity] => 1 [attributes] => Array ( ) [conditions] => Array ( ) ) [5] => Array ( [id] => 5 [name] => Yas Sleeveless Embroidered Top [price] => 45.99 [quantity] => 1 [attributes] => Array ( ) [conditions] => Array ( ) ) [4] => Array ( [id] => 4 [name] => Pretty Little Thing Floral Cover Up [price] => 25.99 [quantity] => 2 [attributes] => Array ( ) [conditions] => Array ( ) ) ); echo implode(', ', array_map(function ($entry) { return $entry['tag_name']; }, $input));
based on ltBZ0
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.6
Parse error: syntax error, unexpected '[', expecting ')' in /in/Q4scV on line 7
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: syntax error, unexpected '[', expecting ')' in /in/Q4scV:7 Stack trace: #0 {main}
Process exited with code 255.