3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace A { /** * My magic test class * * @return \DateTime */ function getdate() { return 'what_ever'; } \getdate(); // ctrl + click on getdate, should go to date.php stubs. Hover is also invalid. This looks like a problem with selection engine } namespace B { print_r(getdate()); // shouldn't work as \DateTime. \getdate() fallback ;; // fix CA ;) }
based on OnCG5
Output for 5.6.28, 7.0.14 - 7.1.0
Array ( [seconds] => 49 [minutes] => 29 [hours] => 9 [mday] => 27 [wday] => 1 [mon] => 10 [year] => 2014 [yday] => 299 [weekday] => Monday [month] => October [0] => 1414398589 )
Output for 7.0.6
Array ( [seconds] => 18 [minutes] => 35 [hours] => 10 [mday] => 3 [wday] => 2 [mon] => 5 [year] => 2016 [yday] => 123 [weekday] => Tuesday [month] => May [0] => 1462264518 )
Output for 7.0.5
Array ( [seconds] => 25 [minutes] => 20 [hours] => 23 [mday] => 2 [wday] => 6 [mon] => 4 [year] => 2016 [yday] => 92 [weekday] => Saturday [month] => April [0] => 1459632025 )
Output for 7.0.4
Array ( [seconds] => 2 [minutes] => 58 [hours] => 9 [mday] => 10 [wday] => 4 [mon] => 3 [year] => 2016 [yday] => 69 [weekday] => Thursday [month] => March [0] => 1457600282 )
Output for 7.0.3
Array ( [seconds] => 42 [minutes] => 38 [hours] => 10 [mday] => 18 [wday] => 5 [mon] => 3 [year] => 2016 [yday] => 77 [weekday] => Friday [month] => March [0] => 1458293922 )
Output for 7.0.2
Array ( [seconds] => 58 [minutes] => 36 [hours] => 16 [mday] => 22 [wday] => 2 [mon] => 3 [year] => 2016 [yday] => 81 [weekday] => Tuesday [month] => March [0] => 1458661018 )
Output for 7.0.1
Array ( [seconds] => 16 [minutes] => 11 [hours] => 21 [mday] => 23 [wday] => 3 [mon] => 3 [year] => 2016 [yday] => 82 [weekday] => Wednesday [month] => March [0] => 1458763876 )
Output for 7.0.0
Array ( [seconds] => 20 [minutes] => 43 [hours] => 22 [mday] => 26 [wday] => 6 [mon] => 3 [year] => 2016 [yday] => 85 [weekday] => Saturday [month] => March [0] => 1459028600 )
Output for hhvm-3.12.0
Array ( [seconds] => 6 [minutes] => 32 [hours] => 13 [mday] => 12 [wday] => 6 [mon] => 3 [year] => 2016 [yday] => 71 [weekday] => Saturday [month] => March [0] => 1457785926 )
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.21
Array ( [seconds] => 30 [minutes] => 54 [hours] => 5 [mday] => 2 [wday] => 1 [mon] => 5 [year] => 2016 [yday] => 122 [weekday] => Monday [month] => May [0] => 1462161270 )
Output for 5.6.20
Array ( [seconds] => 24 [minutes] => 20 [hours] => 22 [mday] => 9 [wday] => 6 [mon] => 4 [year] => 2016 [yday] => 99 [weekday] => Saturday [month] => April [0] => 1460233224 )
Output for 5.6.19
Array ( [seconds] => 24 [minutes] => 6 [hours] => 18 [mday] => 7 [wday] => 1 [mon] => 3 [year] => 2016 [yday] => 66 [weekday] => Monday [month] => March [0] => 1457370384 )
Output for 5.6.18
Array ( [seconds] => 39 [minutes] => 12 [hours] => 2 [mday] => 15 [wday] => 2 [mon] => 3 [year] => 2016 [yday] => 74 [weekday] => Tuesday [month] => March [0] => 1458004359 )
Output for 5.6.17
Array ( [seconds] => 9 [minutes] => 52 [hours] => 14 [mday] => 19 [wday] => 6 [mon] => 3 [year] => 2016 [yday] => 78 [weekday] => Saturday [month] => March [0] => 1458395529 )
Output for 5.6.16
Array ( [seconds] => 44 [minutes] => 40 [hours] => 0 [mday] => 28 [wday] => 1 [mon] => 3 [year] => 2016 [yday] => 87 [weekday] => Monday [month] => March [0] => 1459118444 )
Output for 5.6.15
Array ( [seconds] => 54 [minutes] => 35 [hours] => 1 [mday] => 29 [wday] => 2 [mon] => 3 [year] => 2016 [yday] => 88 [weekday] => Tuesday [month] => March [0] => 1459208154 )
Output for 5.6.14
Array ( [seconds] => 24 [minutes] => 54 [hours] => 3 [mday] => 2 [wday] => 6 [mon] => 4 [year] => 2016 [yday] => 92 [weekday] => Saturday [month] => April [0] => 1459562064 )
Output for 5.6.13
Array ( [seconds] => 12 [minutes] => 49 [hours] => 7 [mday] => 15 [wday] => 5 [mon] => 4 [year] => 2016 [yday] => 105 [weekday] => Friday [month] => April [0] => 1460699352 )
Output for 5.6.12
Array ( [seconds] => 22 [minutes] => 38 [hours] => 21 [mday] => 19 [wday] => 2 [mon] => 4 [year] => 2016 [yday] => 109 [weekday] => Tuesday [month] => April [0] => 1461094702 )
Output for 5.6.11
Array ( [seconds] => 54 [minutes] => 39 [hours] => 4 [mday] => 23 [wday] => 6 [mon] => 4 [year] => 2016 [yday] => 113 [weekday] => Saturday [month] => April [0] => 1461379194 )
Output for 5.6.10
Array ( [seconds] => 42 [minutes] => 24 [hours] => 6 [mday] => 25 [wday] => 1 [mon] => 4 [year] => 2016 [yday] => 115 [weekday] => Monday [month] => April [0] => 1461558282 )
Output for 5.6.9
Array ( [seconds] => 12 [minutes] => 24 [hours] => 11 [mday] => 27 [wday] => 3 [mon] => 4 [year] => 2016 [yday] => 117 [weekday] => Wednesday [month] => April [0] => 1461749052 )
Output for 5.6.8
Array ( [seconds] => 31 [minutes] => 32 [hours] => 19 [mday] => 29 [wday] => 5 [mon] => 4 [year] => 2016 [yday] => 119 [weekday] => Friday [month] => April [0] => 1461951151 )
Output for 5.5.35
Array ( [seconds] => 24 [minutes] => 42 [hours] => 9 [mday] => 22 [wday] => 0 [mon] => 5 [year] => 2016 [yday] => 142 [weekday] => Sunday [month] => May [0] => 1463902944 )
Output for 5.5.34
Array ( [seconds] => 10 [minutes] => 42 [hours] => 0 [mday] => 11 [wday] => 1 [mon] => 4 [year] => 2016 [yday] => 101 [weekday] => Monday [month] => April [0] => 1460328130 )
Output for 5.5.33
Array ( [seconds] => 47 [minutes] => 2 [hours] => 21 [mday] => 8 [wday] => 2 [mon] => 3 [year] => 2016 [yday] => 67 [weekday] => Tuesday [month] => March [0] => 1457467367 )
Output for 5.5.32
Array ( [seconds] => 4 [minutes] => 46 [hours] => 3 [mday] => 17 [wday] => 4 [mon] => 3 [year] => 2016 [yday] => 76 [weekday] => Thursday [month] => March [0] => 1458182764 )
Output for 5.5.31
Array ( [seconds] => 46 [minutes] => 36 [hours] => 17 [mday] => 20 [wday] => 0 [mon] => 3 [year] => 2016 [yday] => 79 [weekday] => Sunday [month] => March [0] => 1458491806 )
Output for 5.5.30
Array ( [seconds] => 33 [minutes] => 32 [hours] => 3 [mday] => 1 [wday] => 5 [mon] => 4 [year] => 2016 [yday] => 91 [weekday] => Friday [month] => April [0] => 1459474353 )
Output for 5.5.29
Array ( [seconds] => 36 [minutes] => 56 [hours] => 21 [mday] => 16 [wday] => 6 [mon] => 4 [year] => 2016 [yday] => 106 [weekday] => Saturday [month] => April [0] => 1460836596 )
Output for 5.5.28
Array ( [seconds] => 51 [minutes] => 54 [hours] => 0 [mday] => 21 [wday] => 4 [mon] => 4 [year] => 2016 [yday] => 111 [weekday] => Thursday [month] => April [0] => 1461192891 )
Output for 5.5.27
Array ( [seconds] => 7 [minutes] => 12 [hours] => 3 [mday] => 22 [wday] => 5 [mon] => 4 [year] => 2016 [yday] => 112 [weekday] => Friday [month] => April [0] => 1461287527 )
Output for 5.5.26
Array ( [seconds] => 31 [minutes] => 51 [hours] => 8 [mday] => 26 [wday] => 2 [mon] => 4 [year] => 2016 [yday] => 116 [weekday] => Tuesday [month] => April [0] => 1461653491 )
Output for 5.5.25
Array ( [seconds] => 19 [minutes] => 16 [hours] => 15 [mday] => 28 [wday] => 4 [mon] => 4 [year] => 2016 [yday] => 118 [weekday] => Thursday [month] => April [0] => 1461849379 )
Output for 5.5.24
Array ( [seconds] => 46 [minutes] => 30 [hours] => 22 [mday] => 23 [wday] => 1 [mon] => 5 [year] => 2016 [yday] => 143 [weekday] => Monday [month] => May [0] => 1464035446 )
Output for 5.4.45
Array ( [seconds] => 59 [minutes] => 45 [hours] => 22 [mday] => 6 [wday] => 0 [mon] => 9 [year] => 2015 [yday] => 248 [weekday] => Sunday [month] => September [0] => 1441572359 )
Output for 5.4.44
Array ( [seconds] => 56 [minutes] => 45 [hours] => 22 [mday] => 6 [wday] => 0 [mon] => 9 [year] => 2015 [yday] => 248 [weekday] => Sunday [month] => September [0] => 1441572356 )
Output for 5.4.43
Array ( [seconds] => 52 [minutes] => 45 [hours] => 22 [mday] => 6 [wday] => 0 [mon] => 9 [year] => 2015 [yday] => 248 [weekday] => Sunday [month] => September [0] => 1441572352 )
Output for 5.4.42
Array ( [seconds] => 59 [minutes] => 50 [hours] => 17 [mday] => 9 [wday] => 4 [mon] => 7 [year] => 2015 [yday] => 189 [weekday] => Thursday [month] => July [0] => 1436457059 )
Output for 5.4.41
Array ( [seconds] => 58 [minutes] => 50 [hours] => 17 [mday] => 9 [wday] => 4 [mon] => 7 [year] => 2015 [yday] => 189 [weekday] => Thursday [month] => July [0] => 1436457058 )
Output for 5.4.39 - 5.4.40
Array ( [seconds] => 53 [minutes] => 50 [hours] => 17 [mday] => 9 [wday] => 4 [mon] => 7 [year] => 2015 [yday] => 189 [weekday] => Thursday [month] => July [0] => 1436457053 )
Output for 5.4.38
Array ( [seconds] => 52 [minutes] => 50 [hours] => 17 [mday] => 9 [wday] => 4 [mon] => 7 [year] => 2015 [yday] => 189 [weekday] => Thursday [month] => July [0] => 1436457052 )
Output for 5.4.37
Array ( [seconds] => 50 [minutes] => 50 [hours] => 17 [mday] => 9 [wday] => 4 [mon] => 7 [year] => 2015 [yday] => 189 [weekday] => Thursday [month] => July [0] => 1436457050 )
Output for 5.4.35 - 5.4.36
Array ( [seconds] => 49 [minutes] => 50 [hours] => 17 [mday] => 9 [wday] => 4 [mon] => 7 [year] => 2015 [yday] => 189 [weekday] => Thursday [month] => July [0] => 1436457049 )
Output for 5.4.32 - 5.4.34
Array ( [seconds] => 54 [minutes] => 29 [hours] => 9 [mday] => 27 [wday] => 1 [mon] => 10 [year] => 2014 [yday] => 299 [weekday] => Monday [month] => October [0] => 1414398594 )
Output for 5.4.12 - 5.4.31
Array ( [seconds] => 55 [minutes] => 29 [hours] => 9 [mday] => 27 [wday] => 1 [mon] => 10 [year] => 2014 [yday] => 299 [weekday] => Monday [month] => October [0] => 1414398595 )
Output for 5.3.21 - 5.4.11
Array ( [seconds] => 56 [minutes] => 29 [hours] => 9 [mday] => 27 [wday] => 1 [mon] => 10 [year] => 2014 [yday] => 299 [weekday] => Monday [month] => October [0] => 1414398596 )
Output for 5.3.0 - 5.3.20
Array ( [seconds] => 57 [minutes] => 29 [hours] => 9 [mday] => 27 [wday] => 1 [mon] => 10 [year] => 2014 [yday] => 299 [weekday] => Monday [month] => October [0] => 1414398597 )
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_STRING in /in/GClOI on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_STRING in /in/GClOI on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/GClOI on line 2
Process exited with code 255.