3v4l.org

run code in 300+ PHP versions simultaneously
<?php $daysInMonth = array(0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); $timestampFailing = false; for ($year = 1500; $year < 2000; $year++) { for ($month = 1; $month <= 12; $month++) { for ($day = 1; $day < $daysInMonth[$month]; $day++) { $baseString = sprintf("%4d-%02d-%02d 00:00:00", $year, $month, $day); $timestamp = strtotime($baseString); if (!$timestamp) { $timestampFailing = true; echo "Timestamp failing start at $baseString\n"; continue; } if ($timestampFailing && $timestamp) { $timestampFailing = false; echo "Timestamp failinng end at $baseString\n"; } $roundTrip = date("Y-m-d H:i:s", $timestamp); if ($baseString !== $roundTrip) { echo "$baseString ($timestamp) $roundTrip\n"; } } } }

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)
8.3.60.0100.34918.55
8.3.50.0130.41521.21
8.3.40.0070.34418.92
8.3.30.0100.33219.09
8.3.20.0030.17520.34
8.3.10.0160.18821.91
8.3.00.0030.17622.35
8.2.180.0200.40616.75
8.2.170.0070.33322.96
8.2.160.0070.33819.20
8.2.150.0070.17624.18
8.2.140.0100.17424.66
8.2.130.0160.17826.16
8.2.120.0070.20119.66
8.2.110.0070.20522.20
8.2.100.0070.30518.03
8.2.90.0030.30119.20
8.2.80.0000.29719.38
8.2.70.0070.31217.75
8.2.60.0070.29517.93
8.2.50.0070.31918.07
8.2.40.0070.30118.22
8.2.30.0030.31118.30
8.2.20.0030.31817.89
8.2.10.0030.32017.81
8.2.00.0070.30917.82
8.1.280.0000.38325.92
8.1.270.0000.20618.87
8.1.260.0100.18026.35
8.1.250.0130.19928.09
8.1.240.0100.23621.86
8.1.230.0070.31519.09
8.1.220.0030.31717.78
8.1.210.0070.33518.77
8.1.200.0030.34917.47
8.1.190.0070.31317.40
8.1.180.0070.33219.14
8.1.170.0070.32918.72
8.1.160.0030.31022.09
8.1.150.0070.33718.88
8.1.140.0070.32617.70
8.1.130.0070.31217.87
8.1.120.0030.33017.64
8.1.110.0030.33217.68
8.1.100.0070.33117.66
8.1.90.0000.33617.62
8.1.80.0000.33717.63
8.1.70.0070.32217.63
8.1.60.0000.33517.59
8.1.50.0030.33417.57
8.1.40.0030.33917.67
8.1.30.0030.33217.80
8.1.20.0030.33417.77
8.1.10.0030.33617.67
8.1.00.0000.33717.74
8.0.300.0030.38318.77
8.0.290.0100.39117.05
8.0.280.0030.39918.43
8.0.270.0100.38417.31
8.0.260.0030.41116.89
8.0.250.0070.39917.04
8.0.240.0030.42217.03
8.0.230.0070.39916.99
8.0.220.0000.41317.06
8.0.210.0000.41116.98
8.0.200.0030.41317.15
8.0.190.0130.39917.06
8.0.180.0000.41317.10
8.0.170.0000.41617.17
8.0.160.0100.40917.07
8.0.150.0000.41416.96
8.0.140.0100.45817.02
8.0.130.0070.39413.45
8.0.120.0030.42217.05
8.0.110.0030.41916.98
8.0.100.0070.40517.18
8.0.90.0070.41016.91
8.0.80.0100.71817.05
8.0.70.0000.42817.07
8.0.60.0070.41417.16
8.0.50.0070.41217.13
8.0.30.0080.64817.17
8.0.20.0150.77017.50
8.0.10.0030.41017.21
8.0.00.0190.70316.85
7.4.330.0000.39215.00
7.4.320.0030.41116.65
7.4.300.0100.40416.73
7.4.290.0070.40616.75
7.4.280.0030.41216.73
7.4.270.0070.41416.73
7.4.260.0070.40316.57
7.4.250.0070.42016.62
7.4.240.0020.41716.62
7.4.230.0030.40916.64
7.4.220.0100.93216.74
7.4.210.0110.74416.76
7.4.200.0100.41416.76
7.4.190.0070.42816.73
7.4.160.0160.61616.93
7.4.150.0100.65817.40
7.4.140.0110.67417.86
7.4.130.0150.68716.70
7.4.120.0220.74316.76
7.4.110.0070.73716.48
7.4.100.0200.73816.58
7.4.90.0070.62416.71
7.4.80.0230.80719.39
7.4.70.0100.69016.68
7.4.60.0060.69916.74
7.4.50.0030.33316.68
7.4.40.0030.57822.77
7.4.30.0160.65116.64
7.4.00.0070.59215.12
7.3.330.0000.38813.29
7.3.320.0030.38013.16
7.3.310.0000.40616.52
7.3.300.0070.40616.42
7.3.290.0360.75016.40
7.3.280.0120.73116.45
7.3.270.0281.01417.40
7.3.260.0060.71616.53
7.3.250.0080.65416.50
7.3.240.0130.73616.54
7.3.230.0130.63216.54
7.3.210.0160.88516.59
7.3.200.0100.73919.39
7.3.190.0030.68116.53
7.3.180.0130.85516.64
7.3.170.0070.61416.85
7.3.160.0070.64616.73
7.3.120.0070.56615.07
7.2.330.0070.64216.80
7.2.320.0160.87516.94
7.2.310.0160.66816.78
7.2.300.0060.67216.76
7.2.290.0130.63116.65
7.1.70.0030.51417.29
7.1.60.0100.51119.82
7.1.50.0070.47117.14
7.1.00.0000.55322.47
7.0.200.0770.43614.84
7.0.140.0100.54722.21
7.0.80.0170.61019.91
7.0.70.0530.57719.90
7.0.60.0500.56320.10
7.0.50.0530.59320.27
7.0.40.0070.50020.14
7.0.30.0070.61020.18
7.0.20.0100.59020.14
7.0.10.0100.59320.05
7.0.00.0170.55019.95
5.6.280.0030.75020.93
5.6.230.0070.69320.59
5.6.220.0000.66320.63
5.6.210.0030.66720.57
5.6.200.0000.67321.04
5.6.190.0130.56321.14
5.6.180.0070.66720.95
5.6.170.0130.65721.02
5.6.160.0000.63020.96
5.6.150.0070.51020.95
5.6.140.0070.64721.04
5.6.130.0170.68721.01
5.6.120.0030.58321.17
5.6.110.0070.64021.09
5.6.100.0000.60321.04
5.6.90.0430.53021.00
5.6.80.0170.70720.35
5.6.70.0000.71320.44
5.6.60.0070.61720.41
5.6.50.0670.65320.41
5.6.40.0100.64020.42
5.6.30.0130.67320.47
5.6.20.0070.66020.34
5.6.10.0070.67020.53
5.6.00.0100.70020.42
5.5.370.0030.70320.52
5.5.360.0730.54320.55
5.5.350.0100.69020.35
5.5.340.0030.66020.87
5.5.330.0030.67020.80
5.5.320.0070.68720.86
5.5.310.0070.69020.83
5.5.300.0100.69720.73
5.5.290.0070.61020.93
5.5.280.0030.59720.88
5.5.270.0000.86320.89
5.5.260.0070.58320.90
5.5.250.0000.69320.70
5.5.240.0170.69320.26
5.5.230.0170.70720.28
5.5.220.0000.68020.29
5.5.210.0000.65720.14
5.5.200.0000.72719.99
5.5.190.0130.67720.08
5.5.180.0100.71320.27
5.5.160.0070.68020.20
5.5.150.0100.69320.25
5.5.140.0130.66320.14
5.5.130.0000.57719.99
5.5.120.0030.50720.06
5.5.110.0000.66720.15
5.5.100.0100.69320.16
5.5.90.0070.71320.05
5.5.80.0030.68720.16
5.5.70.0070.60720.15
5.5.60.0000.65020.12
5.5.50.0030.63320.16
5.5.40.0000.69320.08
5.5.30.0000.57020.00
5.5.20.0100.67020.04
5.5.10.0070.67020.02
5.5.00.0100.71720.05
5.4.450.0030.70719.27
5.4.440.0000.70019.16
5.4.430.0100.70319.27
5.4.420.0030.54319.11
5.4.410.0030.55319.09
5.4.400.0100.57319.15
5.4.390.0900.64018.92
5.4.380.0000.70319.08
5.4.370.0030.55019.03
5.4.360.0030.68319.04
5.4.350.0070.54719.05
5.4.340.0100.69719.07
5.4.320.0030.69019.12
5.4.310.0070.69719.13
5.4.300.0070.70319.11
5.4.290.0030.64719.16
5.4.280.0100.52019.22
5.4.270.0130.66019.09
5.4.260.0070.69319.18
5.4.250.0170.67318.80
5.4.240.0130.67319.04
5.4.230.0100.73019.14
5.4.220.0030.69718.95
5.4.210.0000.58318.95
5.4.200.0030.53718.78
5.4.190.0000.51719.05
5.4.180.0100.60018.96
5.4.170.0070.66319.22
5.4.160.0100.54318.76
5.4.150.0030.63718.87
5.4.140.0000.73016.18
5.4.130.0030.67716.11
5.4.120.0100.69016.35
5.4.110.0030.73316.41
5.4.100.0000.72316.31
5.4.90.0070.68016.46
5.4.80.0870.66016.53
5.4.70.0030.63016.38
5.4.60.0030.68316.19
5.4.50.0030.80716.38
5.4.40.0130.61716.33
5.4.30.0030.75716.40
5.4.20.0030.80316.17
5.4.10.0670.74316.41
5.4.00.0100.80715.83
5.3.290.0130.83314.51
5.3.280.0030.82314.60
5.3.270.0100.86014.58
5.3.260.0070.75314.56
5.3.250.0130.86014.61
5.3.240.0030.79714.47
5.3.230.0070.84014.59
5.3.220.0070.86314.55
5.3.210.0000.84014.41
5.3.200.0170.86714.43
5.3.190.0030.78314.59
5.3.180.0000.68714.58
5.3.170.0000.80314.44
5.3.160.0030.81314.41
5.3.150.0170.81314.55
5.3.140.0500.66014.52
5.3.130.0070.82014.42
5.3.120.0030.84314.41
5.3.110.0070.84314.39
5.3.100.0070.80713.99
5.3.90.0030.82713.88
5.3.80.0030.80713.89
5.3.70.0100.65314.01
5.3.60.0130.83314.00
5.3.50.0130.82013.95
5.3.40.0000.70013.91
5.3.30.0130.83713.67
5.3.20.0130.80713.47
5.3.10.0030.86713.64
5.3.00.0000.83013.63

preferences:
44.81 ms | 401 KiB | 5 Q