3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array( 'image_ul' => $image, 'brand_name' => $brand, 'ean' => $ean, 'meta_matrix' => array( 'Style name' => $label, 'Artikelnummer' => $sku, 'Size' => $size, 'Farbe' => $color, ), ); echo json_encode($arr);
based on XJumi
Output for 5.4.0 - 7.2.0
Notice: Undefined variable: image in /in/NNWiT on line 3 Notice: Undefined variable: brand in /in/NNWiT on line 4 Notice: Undefined variable: ean in /in/NNWiT on line 5 Notice: Undefined variable: label in /in/NNWiT on line 7 Notice: Undefined variable: sku in /in/NNWiT on line 8 Notice: Undefined variable: size in /in/NNWiT on line 9 Notice: Undefined variable: color in /in/NNWiT on line 10 {"image_ul":null,"brand_name":null,"ean":null,"meta_matrix":{"Style name":null,"Artikelnummer":null,"Size":null,"Farbe":null}}