3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace A { /** * My magic test class * * @return \Exception */ 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 C { use function getdate as getdate_alias; print_r(getdate_alias()) // not work ;; // fix CA ;) }
based on GClOI
Output for 5.6.28, 7.0.14 - 7.1.0
Array ( [seconds] => 32 [minutes] => 36 [hours] => 9 [mday] => 27 [wday] => 1 [mon] => 10 [year] => 2014 [yday] => 299 [weekday] => Monday [month] => October [0] => 1414398992 )
Output for 7.0.6
Array ( [seconds] => 3 [minutes] => 19 [hours] => 7 [mday] => 3 [wday] => 2 [mon] => 5 [year] => 2016 [yday] => 123 [weekday] => Tuesday [month] => May [0] => 1462252743 )
Output for 7.0.5
Array ( [seconds] => 27 [minutes] => 18 [hours] => 20 [mday] => 2 [wday] => 6 [mon] => 4 [year] => 2016 [yday] => 92 [weekday] => Saturday [month] => April [0] => 1459621107 )
Output for 7.0.4
Array ( [seconds] => 56 [minutes] => 29 [hours] => 6 [mday] => 10 [wday] => 4 [mon] => 3 [year] => 2016 [yday] => 69 [weekday] => Thursday [month] => March [0] => 1457587796 )
Output for 7.0.3
Array ( [seconds] => 46 [minutes] => 58 [hours] => 6 [mday] => 18 [wday] => 5 [mon] => 3 [year] => 2016 [yday] => 77 [weekday] => Friday [month] => March [0] => 1458280726 )
Output for 7.0.2
Array ( [seconds] => 29 [minutes] => 31 [hours] => 12 [mday] => 22 [wday] => 2 [mon] => 3 [year] => 2016 [yday] => 81 [weekday] => Tuesday [month] => March [0] => 1458646289 )
Output for 7.0.1
Array ( [seconds] => 0 [minutes] => 51 [hours] => 17 [mday] => 23 [wday] => 3 [mon] => 3 [year] => 2016 [yday] => 82 [weekday] => Wednesday [month] => March [0] => 1458751860 )
Output for 7.0.0
Array ( [seconds] => 35 [minutes] => 32 [hours] => 19 [mday] => 26 [wday] => 6 [mon] => 3 [year] => 2016 [yday] => 85 [weekday] => Saturday [month] => March [0] => 1459017155 )
Output for hhvm-3.12.0
Array ( [seconds] => 1 [minutes] => 50 [hours] => 15 [mday] => 11 [wday] => 5 [mon] => 3 [year] => 2016 [yday] => 70 [weekday] => Friday [month] => March [0] => 1457707801 )
Output for hhvm-3.10.0
Array ( [seconds] => 15 [minutes] => 7 [hours] => 5 [mday] => 30 [wday] => 3 [mon] => 3 [year] => 2016 [yday] => 89 [weekday] => Wednesday [month] => March [0] => 1459307235 )
Output for 5.6.21
Array ( [seconds] => 49 [minutes] => 36 [hours] => 2 [mday] => 2 [wday] => 1 [mon] => 5 [year] => 2016 [yday] => 122 [weekday] => Monday [month] => May [0] => 1462149409 )
Output for 5.6.20
Array ( [seconds] => 59 [minutes] => 38 [hours] => 16 [mday] => 9 [wday] => 6 [mon] => 4 [year] => 2016 [yday] => 99 [weekday] => Saturday [month] => April [0] => 1460212739 )
Output for 5.6.19
Array ( [seconds] => 41 [minutes] => 39 [hours] => 8 [mday] => 7 [wday] => 1 [mon] => 3 [year] => 2016 [yday] => 66 [weekday] => Monday [month] => March [0] => 1457336381 )
Output for 5.6.18
Array ( [seconds] => 4 [minutes] => 12 [hours] => 21 [mday] => 14 [wday] => 1 [mon] => 3 [year] => 2016 [yday] => 73 [weekday] => Monday [month] => March [0] => 1457986324 )
Output for 5.6.17
Array ( [seconds] => 15 [minutes] => 18 [hours] => 11 [mday] => 19 [wday] => 6 [mon] => 3 [year] => 2016 [yday] => 78 [weekday] => Saturday [month] => March [0] => 1458382695 )
Output for 5.6.16
Array ( [seconds] => 31 [minutes] => 17 [hours] => 21 [mday] => 27 [wday] => 0 [mon] => 3 [year] => 2016 [yday] => 86 [weekday] => Sunday [month] => March [0] => 1459106251 )
Output for 5.6.15
Array ( [seconds] => 27 [minutes] => 11 [hours] => 22 [mday] => 28 [wday] => 1 [mon] => 3 [year] => 2016 [yday] => 87 [weekday] => Monday [month] => March [0] => 1459195887 )
Output for 5.6.14
Array ( [seconds] => 20 [minutes] => 37 [hours] => 0 [mday] => 2 [wday] => 6 [mon] => 4 [year] => 2016 [yday] => 92 [weekday] => Saturday [month] => April [0] => 1459550240 )
Output for 5.6.13
Array ( [seconds] => 42 [minutes] => 41 [hours] => 4 [mday] => 15 [wday] => 5 [mon] => 4 [year] => 2016 [yday] => 105 [weekday] => Friday [month] => April [0] => 1460688102 )
Output for 5.6.12
Array ( [seconds] => 54 [minutes] => 14 [hours] => 18 [mday] => 19 [wday] => 2 [mon] => 4 [year] => 2016 [yday] => 109 [weekday] => Tuesday [month] => April [0] => 1461082494 )
Output for 5.6.11
Array ( [seconds] => 7 [minutes] => 13 [hours] => 1 [mday] => 23 [wday] => 6 [mon] => 4 [year] => 2016 [yday] => 113 [weekday] => Saturday [month] => April [0] => 1461366787 )
Output for 5.6.10
Array ( [seconds] => 2 [minutes] => 5 [hours] => 3 [mday] => 25 [wday] => 1 [mon] => 4 [year] => 2016 [yday] => 115 [weekday] => Monday [month] => April [0] => 1461546302 )
Output for 5.6.9
Array ( [seconds] => 55 [minutes] => 2 [hours] => 8 [mday] => 27 [wday] => 3 [mon] => 4 [year] => 2016 [yday] => 117 [weekday] => Wednesday [month] => April [0] => 1461736975 )
Output for 5.6.8
Array ( [seconds] => 6 [minutes] => 59 [hours] => 15 [mday] => 29 [wday] => 5 [mon] => 4 [year] => 2016 [yday] => 119 [weekday] => Friday [month] => April [0] => 1461938346 )
Output for 5.6.7
Array ( [seconds] => 13 [minutes] => 43 [hours] => 8 [mday] => 25 [wday] => 3 [mon] => 5 [year] => 2016 [yday] => 145 [weekday] => Wednesday [month] => May [0] => 1464158593 )
Output for 5.4.0 - 5.5.35
Parse error: syntax error, unexpected 'function' (T_FUNCTION), expecting identifier (T_STRING) or \\ (T_NS_SEPARATOR) in /in/AfP3Z on line 18
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_FUNCTION, expecting T_STRING or T_NS_SEPARATOR in /in/AfP3Z on line 18
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_STRING in /in/AfP3Z 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/AfP3Z on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/AfP3Z on line 2
Process exited with code 255.