3v4l.org

run code in 300+ PHP versions simultaneously
<?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));
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.6
Parse error: syntax error, unexpected '[', expecting ')' in /in/Q4scV on line 7
Process exited with code 255.

preferences:
175.55 ms | 1395 KiB | 35 Q