3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month=2; $dt=30; $year=2014; $timestamp = mktime(0, 0, 0, "$month", "$dt", "$year"); echo (new \DateTime("@{$timestamp}")->format('d-m-Y');

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.270.0030.05718.95
5.4.260.0030.05318.96
5.4.250.0100.07318.94
5.4.240.0130.07018.98
5.4.230.0130.05319.01
5.4.220.0100.05018.99
5.4.210.0070.07718.76
5.4.200.0200.05318.78
5.4.190.0070.05318.89
5.4.180.0070.07718.83
5.4.170.0130.05019.00
5.4.160.0100.04718.82
5.4.150.0000.06318.94
5.4.140.0030.05316.57
5.4.130.0070.04716.34
5.4.120.0030.05316.37
5.4.110.0130.05316.56
5.4.100.0100.04716.47
5.4.90.0170.05716.51
5.4.80.0130.04016.40
5.4.70.0070.05016.37
5.4.60.0030.05316.52
5.4.50.0000.05316.46
5.4.40.0200.04316.45
5.4.30.0170.03716.52
5.4.20.0130.05316.53
5.4.10.0100.06716.36
5.4.00.0030.06016.04
5.3.280.0200.03714.70
5.3.270.0030.06314.70
5.3.260.0130.04714.65
5.3.250.0170.06314.70
5.3.240.0070.05014.61
5.3.230.0030.05314.48
5.3.220.0070.05014.57
5.3.210.0100.05014.44
5.3.200.0100.04714.62
5.3.190.0070.05014.49
5.3.180.0070.06714.61
5.3.170.0130.04314.47
5.3.160.0170.06314.58
5.3.150.0100.04714.71
5.3.140.0070.07014.48
5.3.130.0130.04714.59
5.3.120.0030.05714.43
5.3.110.0070.05014.59
5.3.100.0070.05013.87
5.3.90.0030.05714.03
5.3.80.0030.07314.07
5.3.70.0070.06713.85
5.3.60.0000.05313.87
5.3.50.0000.07313.95
5.3.40.0070.07013.73
5.3.30.0070.05713.77
5.3.20.0030.05313.60
5.3.10.0000.06013.70
5.3.00.0030.05013.62
5.2.170.0070.03711.03
5.2.160.0030.04311.06
5.2.150.0170.03711.16
5.2.140.0000.06011.14
5.2.130.0030.04010.86
5.2.120.0030.04011.11
5.2.110.0130.04011.12
5.2.100.0100.03311.00
5.2.90.0030.04310.85
5.2.80.0030.05011.01
5.2.70.0030.04711.10
5.2.60.0030.04311.07
5.2.50.0070.05310.80
5.2.40.0000.04311.11
5.2.30.0030.06010.97
5.2.20.0100.03310.96
5.2.10.0130.03010.93
5.2.00.0000.04310.72
5.1.60.0070.04310.23
5.1.50.0030.0409.77
5.1.40.0100.0279.93
5.1.30.0170.03710.27
5.1.20.0170.03710.36
5.1.10.0030.03710.16
5.1.00.0030.04710.21
5.0.50.0070.0378.60
5.0.40.0070.0238.39
5.0.30.0000.0608.37
5.0.20.0100.0208.19
5.0.10.0070.0278.10
5.0.00.0070.0378.30
4.4.90.0100.0236.56
4.4.80.0070.0236.56
4.4.70.0070.0276.56
4.4.60.0000.0236.56
4.4.50.0000.0236.56
4.4.40.0000.0376.56
4.4.30.0030.0206.56
4.4.20.0070.0176.56
4.4.10.0030.0206.56
4.4.00.0030.0376.56
4.3.110.0000.0236.56
4.3.100.0030.0236.56
4.3.90.0000.0236.56
4.3.80.0030.0306.56
4.3.70.0030.0276.56
4.3.60.0000.0306.56
4.3.50.0000.0276.56
4.3.40.0000.0476.56
4.3.30.0030.0206.56
4.3.20.0030.0276.56
4.3.10.0100.0136.56
4.3.00.0000.0236.70

preferences:
141.92 ms | 1394 KiB | 7 Q