3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $prizes => array( '1' => array( 'from' => new DateTime('2014-04-22 00:00:00'), 'to' => new DateTime('2014-05-18 23:59:59'), 'date' => new DateTime('2014-06-06 20:45:00'), 'name' => 'Deutschland vs.<br/>Armenien', 'desc' => '06. Juni 2014<br/>In Mainz<br/>Exklusiver Einlass: 18:30 Uhr<br/>Anpfiff: 20:45 Uhr', 'img' => 'armenien.jpg' ), '2' => array( 'from' => new DateTime('2014-04-22 00:00:00'), 'to' => new DateTime('2014-08-21 23:59:59'), 'date' => new DateTime('2014-09-07 20:45:00'), 'name' => 'Deutschland vs.<br/>Schottland', 'desc' => '07. September 2014<br/>In Dortmund<br/>Exklusiver Einlass: 18:30 Uhr<br/>Anpfiff: 20:45 Uhr', 'img' => 'schottland.jpg' ), '3' => array( 'from' => new DateTime('2014-04-22 00:00:00'), 'to' => new DateTime('2014-09-24 23:59:59'), 'date' => new DateTime('2014-10-14 20:45:00'), 'name' => 'Deutschland vs.<br/>Irland', 'desc' => '14. Oktober 2014<br/>In Gelsenkirchen<br/>Exklusiver Einlass: 18:30 Uhr<br/>Anpfiff: 20:45 Uhr', 'img' => 'irland.jpg' ), '4' => array( 'from' => new DateTime('2014-04-22 00:00:00'), 'to' => new DateTime('2014-10-29 23:59:59'), 'date' => new DateTime('2014-11-14 20:45:00'), 'name' => 'Deutschland vs.<br/>Gibraltar', 'desc' => '14. November 2014<br/>In Bremen<br/>Exklusiver Einlass: 18:30 Uhr<br/>Anpfiff: 20:45 Uhr', 'img' => 'gibraltar.jpg' ) ); foreach ($prizes as $id => $prize) { if (isset($prize['expired']) && $prize['expired'] === true) { echo $prize['img']; } }
Output for 5.4.29

Process exited with code 143.
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /in/KnG9Z on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /in/KnG9Z on line 3
Process exited with code 255.