3v4l.org

run code in 300+ PHP versions simultaneously
<?php $monthsAndLastDay = [ 1 => 31, 2 => 28, 3 => 31, 4 => 30, 5 => 31, 6 => 30, 7 => 31, 8 => 31, 9 => 30, 10 => 31, 11 => 30, 12 => 31, ]; foreach ($monthsAndLastDay as $month => $lastDay) { $start = (new DateTimeImmutable)->setDate(2017, $month, 1)->setTime(0, 0); $end = (new DateTimeImmutable)->setDate(2017, $month, $lastDay)->setTime(23, 59, 59); $diff = $end->diff($start); echo '------------------------' . PHP_EOL; echo 'Month: ' . $start->format('F') . PHP_EOL; echo '$diff->d: ' . $diff->d . PHP_EOL; echo '$diff->days: ' . $diff->days . PHP_EOL; echo '$diff->m: ' . $diff->m . PHP_EOL; }

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.70.0130.00316.88
8.3.60.0090.00916.63
8.3.50.0120.00721.99
8.3.40.0120.00618.98
8.3.30.0150.00318.80
8.3.20.0000.00820.16
8.3.10.0100.00021.90
8.3.00.0040.00419.65
8.2.190.0110.00716.75
8.2.180.0070.00716.72
8.2.170.0190.00322.96
8.2.160.0110.00321.02
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00322.16
8.2.120.0080.00026.35
8.2.110.0030.00620.25
8.2.100.0090.00319.51
8.2.90.0090.00017.75
8.2.80.0030.00618.88
8.2.70.0030.00617.88
8.2.60.0030.00517.63
8.2.50.0030.00617.91
8.2.40.0030.00618.18
8.2.30.0060.00321.00
8.2.20.0050.00318.01
8.2.10.0000.00718.38
8.2.00.0040.00418.41
8.1.280.0040.01125.92
8.1.270.0050.00523.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00319.29
8.1.230.0070.00420.85
8.1.220.0030.00618.81
8.1.210.0000.00918.77
8.1.200.0030.00617.48
8.1.190.0030.00617.35
8.1.180.0050.00318.10
8.1.170.0050.00517.62
8.1.160.0000.00818.96
8.1.150.0040.00421.86
8.1.140.0030.00619.63
8.1.130.0030.00318.99
8.1.120.0040.00417.64
8.1.110.0000.00817.66
8.1.100.0050.00317.68
8.1.90.0040.00417.66
8.1.80.0040.00417.61
8.1.70.0000.00717.68
8.1.60.0060.00317.68
8.1.50.0030.00617.66
8.1.40.0080.00017.66
8.1.30.0030.00517.78
8.1.20.0000.00817.68
8.1.10.0000.00917.67
8.1.00.0030.00517.63
8.0.300.0040.00418.77
8.0.290.0040.00416.72
8.0.280.0000.00818.51
8.0.270.0000.00817.21
8.0.260.0000.00720.75
8.0.250.0000.00717.22
8.0.240.0090.00317.05
8.0.230.0030.00317.17
8.0.220.0050.00217.00
8.0.210.0000.00717.08
8.0.200.0000.00717.05
8.0.190.0040.00417.07
8.0.180.0040.00417.18
8.0.170.0040.00417.02
8.0.160.0000.00817.05
8.0.150.0060.00316.96
8.0.140.0000.00716.92
8.0.130.0050.00013.46
8.0.120.0040.00417.05
8.0.110.0000.00717.16
8.0.100.0040.00417.05
8.0.90.0050.00217.07
8.0.80.0070.00717.04
8.0.70.0070.00017.12
8.0.60.0000.00816.88
8.0.50.0040.00416.98
8.0.30.0090.01117.29
8.0.20.0090.01017.43
8.0.10.0000.00717.21
8.0.00.0090.01217.14
7.4.330.0030.00315.55
7.4.320.0030.00316.57
7.4.300.0000.00616.77
7.4.290.0000.00716.59
7.4.280.0040.00416.56
7.4.270.0040.00416.63
7.4.260.0050.00216.64
7.4.250.0070.00016.62
7.4.240.0030.00416.55
7.4.230.0000.00716.53
7.4.220.0120.00916.62
7.4.210.0180.00316.85
7.4.200.0000.00716.44
7.4.160.0110.00716.61
7.4.150.0130.00617.40
7.4.140.0130.00617.86
7.4.130.0070.01116.73
7.4.120.0130.00916.63
7.4.110.0110.00616.60
7.4.100.0100.00716.61
7.4.90.0120.00616.79
7.4.80.0120.00619.39
7.4.70.0090.00916.66
7.4.60.0140.00316.74
7.4.50.0090.00316.52
7.4.40.0120.00616.34
7.4.30.0100.00716.79
7.4.00.0100.00715.00
7.3.330.0050.00013.22
7.3.320.0050.00013.20
7.3.310.0000.00716.38
7.3.300.0070.00016.40
7.3.290.0070.00916.38
7.3.280.0090.01116.43
7.3.270.0070.01117.40
7.3.260.0160.00516.64
7.3.250.0110.00716.54
7.3.240.0080.01316.54
7.3.230.0180.00016.58
7.3.210.0030.01316.52
7.3.200.0060.01216.43
7.3.190.0090.00916.53
7.3.180.0120.00616.48
7.3.170.0100.01016.54
7.3.160.0110.01116.68
7.2.330.0120.00617.01
7.2.320.0100.01417.09
7.2.310.0090.00916.82
7.2.300.0150.00316.90
7.2.290.0070.01116.75
7.2.60.0100.00317.14
7.1.200.0030.00915.92
7.1.70.0000.01017.36
7.1.60.0040.00817.53
7.1.50.0030.00917.29
7.1.40.0000.01216.90
7.1.30.0030.01016.86
7.1.20.0120.00016.96
7.1.10.0060.00616.74
7.1.00.0000.00817.00
7.0.200.0000.00717.06
7.0.190.0030.00516.84
7.0.180.0000.00716.46
7.0.170.0000.00816.29
7.0.160.0000.00816.37
7.0.150.0030.00516.52
7.0.140.0040.00416.55
7.0.130.0000.00816.63
7.0.120.0040.00416.77
7.0.110.0050.00216.52
7.0.100.0030.00516.51
7.0.90.0030.00716.56
7.0.80.0040.00716.63
7.0.70.0000.00916.57
7.0.60.0000.00816.44
7.0.50.0000.00716.48
7.0.40.0060.00315.21
7.0.30.0030.00715.21
7.0.20.0000.00715.21
7.0.10.0000.00815.21
7.0.00.0000.00715.21

preferences:
28.8 ms | 401 KiB | 5 Q