3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sizes = [ 'sizingTable' => [ [ 'womens_clothing' => ['XXS', 'XS','XS/S','S','S/M','M','M/L','L','L/XL','XL','XXL','XXXL', '', ''], 'germany' => ['32', '34', '34/36', '36', '38', '38', '38/40', '40', '40/42', '42', '44', '46', '', ''], 'italien' => ['32', '34', '34/36', '36', '38', '38', '38/40', '40', '40/42', '42', '44', '46', '', ''] ], [ 'womens_clothing' => ['XXS', 'XS','XS/S','S','S/M','M','M/L','L','L/XL','XL','XXL','XXXL', '', ''], 'germany' => ['32', '34', '34/36', '36', '38', '38', '38/40', '40', '40/42', '42', '44', '46', '', ''], 'italien' => ['32', '34', '34/36', '36', '38', '38', '38/40', '40', '40/42', '42', '44', '46', '', ''] ], [ 'womens_clothing' => ['XXS', 'XS','XS/S','S','S/M','M','M/L','L','L/XL','XL','XXL','XXXL', '', ''], 'germany' => ['32', '34', '34/36', '36', '38', '38', '38/40', '40', '40/42', '42', '44', '46', '', ''], 'italien' => ['32', '34', '34/36', '36', '38', '38', '38/40', '40', '40/42', '42', '44', '46', '', ''] ] ] ]; function getElement() { return $sizes; } echo json_encode((getElement())['sizingTable'], JSON_PRETTY_PRINT);
Output for git.master, git.master_jit
Warning: Undefined variable $sizes in /in/M0HOS on line 27 Warning: Trying to access array offset on value of type null in /in/M0HOS on line 32 null
Output for rfc.property-hooks
Warning: Undefined variable $sizes in /in/M0HOS on line 27 Warning: Trying to access array offset on null in /in/M0HOS on line 32 null

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:
37.3 ms | 401 KiB | 8 Q