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"; }
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /in/gkcXi on line 38 Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /in/gkcXi on line 38 key: thumbnail width: 150 height: 150 key: thumbnail width: 150 height: 150 key: medium width: 300 height: 300 key: medium width: 300 height: 300 key: medium_large width: 1024 height: 1024 key: medium_large width: 1024 height: 1024 key: large width: 2000 height: 1200 key: large width: 2000 height: 1200 key: twentyseventeen-thumbnail-avatar width: 100 height: 100 key: twentyseventeen-thumbnail-avatar width: 100 height: 100

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
94.61 ms | 407 KiB | 5 Q