3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($x = 0; $x< 30; $x++){ unset($aDate); exec("date", $aDate); print("date(\"d.m.y H:i:s\") yields: ".date("d.m.y H:i:s")." while 'date' yields $aDate[0].\n"); sleep(1); }
Output for 5.3.0 - 7.1.0
Notice: Undefined offset: 0 in /in/XLHIG on line 7 date("d.m.y H:i:s") yields: 27.03.14 12:34:10 while 'date' yields . Notice: Undefined offset: 0 in /in/XLHIG on line 7 date("d.m.y H:i:s") yields: 27.03.14 12:34:11 while 'date' yields . Notice: Undefined offset: 0 in /in/XLHIG on line 7 date("d.m.y H:i:s") yields: 27.03.14 12:34:12 while 'date' yields .
Process exited with code 137.
Output for 5.2.3 - 5.2.17
Notice: Undefined offset: 0 in /in/XLHIG on line 7 date("d.m.y H:i:s") yields: 27.03.14 12:34:10 while 'date' yields . Notice: Undefined offset: 0 in /in/XLHIG on line 7 date("d.m.y H:i:s") yields: 27.03.14 12:34:11 while 'date' yields . Notice: Undefined offset: 0 in /in/XLHIG on line 7 date("d.m.y H:i:s") yields: 27.03.14 12:34:12 while 'date' yields .
Process exited with code 137.
Output for 4.3.0 - 5.2.2
Notice: Undefined index: 0 in /in/XLHIG on line 7 date("d.m.y H:i:s") yields: 27.03.14 12:34:10 while 'date' yields . Notice: Undefined index: 0 in /in/XLHIG on line 7 date("d.m.y H:i:s") yields: 27.03.14 12:34:11 while 'date' yields . Notice: Undefined index: 0 in /in/XLHIG on line 7 date("d.m.y H:i:s") yields: 27.03.14 12:34:12 while 'date' yields .
Process exited with code 137.