3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arraydata = [ "thumbnail" => [ "width" => 150, "height" => 150, "crop" => 1 ], "medium" => [ "width" => 300, "height" => 300, "crop" => '' ], "medium_large" => [ "width" => 1024, "height" => 1024, "crop" => '' ], "large" => [ "width" => 2000, "height" => 1200, "crop" => 1 ], "twentyseventeen-thumbnail-avatar" => [ "width" => 2000, "height" => 1200, "crop" => 1 ], "twentyseventeen-thumbnail-avatar" => [ "width" => 100, "height" => 100, "crop" => 1 ] ]; foreach($arraydata as $key => $value) { echo "key: $key width: ${value['width']} height: ${value['height']}\n"; echo "key: " . $key . " width: " . $value['width'] . " height: " . $value['height'] . "\n"; }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
159.17 ms | 2760 KiB | 10 Q