3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2009-12-02'); $start->modify('first day of this month'); $end = new DateTime('2012-05-06'); $end->modify('first day of next month'); $interval = DateInterval::createFromDateString('+1 year'); $period = new DatePeriod($start, $interval, $end); foreach ($period as $dt) { echo $dt->format("Y") . 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.0080.00818.56
8.3.60.0070.01118.43
8.3.50.0120.00922.15
8.3.40.0160.00018.92
8.3.30.0140.00019.30
8.3.20.0080.00020.43
8.3.10.0080.00021.73
8.3.00.0080.00020.89
8.2.180.0140.00716.88
8.2.170.0030.01322.96
8.2.160.0100.00320.57
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00019.43
8.2.110.0090.00019.36
8.2.100.0000.01018.22
8.2.90.0050.00319.34
8.2.80.0040.00419.30
8.2.70.0060.00317.75
8.2.60.0060.00317.93
8.2.50.0030.00518.07
8.2.40.0070.00418.34
8.2.30.0040.00419.35
8.2.20.0000.00817.96
8.2.10.0000.00818.26
8.2.00.0050.00518.08
8.1.280.0070.00725.92
8.1.270.0150.00020.33
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00723.92
8.1.230.0110.00020.89
8.1.220.0000.00818.77
8.1.210.0040.00418.98
8.1.200.0040.00417.60
8.1.190.0030.00517.66
8.1.180.0060.00318.10
8.1.170.0030.00618.90
8.1.160.0050.00319.03
8.1.150.0040.00418.90
8.1.140.0040.00417.68
8.1.130.0030.00318.03
8.1.120.0000.00817.63
8.1.110.0020.00517.61
8.1.100.0000.00717.56
8.1.90.0040.00417.65
8.1.80.0000.00717.74
8.1.70.0040.00417.72
8.1.60.0040.00417.80
8.1.50.0060.00317.63
8.1.40.0040.00417.68
8.1.30.0000.00917.79
8.1.20.0040.00417.82
8.1.10.0030.00617.73
8.1.00.0000.00717.70
8.0.300.0000.00720.08
8.0.290.0040.00417.02
8.0.280.0000.00818.59
8.0.270.0040.00417.40
8.0.260.0030.00517.34
8.0.250.0030.00317.25
8.0.240.0040.00417.28
8.0.230.0000.00917.13
8.0.220.0030.00317.15
8.0.210.0000.00717.17
8.0.200.0030.00317.11
8.0.190.0030.00617.25
8.0.180.0000.00817.12
8.0.170.0110.00017.24
8.0.160.0000.00817.21
8.0.150.0040.00717.10
8.0.140.0040.00417.17
8.0.130.0000.00613.53
8.0.120.0050.00217.14
8.0.110.0040.00417.05
8.0.100.0000.00817.15
8.0.90.0000.00817.21
8.0.80.0060.00917.20
8.0.70.0050.00317.05
8.0.60.0070.00317.05
8.0.50.0000.00717.12
8.0.30.0050.01317.21
8.0.20.0110.00717.46
8.0.10.0050.00217.18
8.0.00.0100.01017.01
7.4.330.0030.00315.22
7.4.320.0030.00316.71
7.4.300.0030.00316.81
7.4.290.0000.00716.78
7.4.280.0050.00216.70
7.4.270.0070.00016.80
7.4.260.0000.00716.69
7.4.250.0040.00416.78
7.4.240.0040.00416.72
7.4.230.0070.00016.91
7.4.220.0060.01816.75
7.4.210.0070.00816.79
7.4.200.0030.00316.57
7.4.160.0160.00616.52
7.4.150.0070.01117.40
7.4.140.0100.00817.86
7.4.130.0130.00516.67
7.4.120.0080.01216.66
7.4.110.0060.01216.51
7.4.100.0180.01016.80
7.4.90.0140.00416.66
7.4.80.0140.00319.39
7.4.70.0030.01316.90
7.4.60.0110.00616.74
7.4.50.0030.00516.70
7.4.40.0070.01016.90
7.4.30.0070.01016.77
7.4.00.0150.00015.29
7.3.330.0000.00513.16
7.3.320.0030.00313.33
7.3.310.0040.00416.60
7.3.300.0000.00716.52
7.3.290.0030.00316.42
7.3.280.0070.00916.51
7.3.270.0060.01217.40
7.3.260.0090.00916.50
7.3.250.0080.01116.67
7.3.240.0060.01316.54
7.3.230.0100.01016.51
7.3.210.0060.00916.81
7.3.200.0150.00619.39
7.3.190.0090.01316.94
7.3.180.0070.01016.57
7.3.170.0040.01416.71
7.3.160.0090.00916.75
7.2.330.0090.00916.82
7.2.320.0180.00316.99
7.2.310.0060.01216.89
7.2.300.0060.01616.97
7.2.290.0100.00816.97
7.2.60.0000.00717.20
7.2.00.0030.01019.64
7.1.200.0000.01115.78
7.1.100.0040.01118.42
7.1.70.0000.00717.11
7.1.60.0100.01319.48
7.1.50.0040.01817.18
7.1.00.0070.07322.43
7.0.200.0000.00717.07
7.0.60.0100.03719.80
7.0.50.0100.07317.82
7.0.40.0100.07320.20
7.0.30.0530.07020.06
7.0.20.0300.08320.16
7.0.10.0130.08020.14
7.0.00.0030.04020.09
5.6.280.0030.07321.14
5.6.210.0130.06720.72
5.6.200.0170.07718.12
5.6.190.0130.05320.49
5.6.180.0230.04720.32
5.6.170.0270.08320.37
5.6.160.0100.07720.47
5.6.150.0030.06318.22
5.6.140.0070.08718.11
5.6.130.0070.08018.22
5.6.120.0200.08021.00
5.6.110.0100.06321.05
5.6.100.0070.06720.96
5.6.90.0030.06720.99
5.6.80.0170.07320.43
5.6.70.4330.03020.29
5.5.350.0130.03020.38
5.5.340.0030.08718.01
5.5.330.0100.05720.43
5.5.320.0200.04320.23
5.5.310.0300.07720.20
5.5.300.0100.07717.91
5.5.290.0000.07717.98
5.5.280.0130.07720.77
5.5.270.0070.08320.64
5.5.260.0070.08720.63
5.5.250.0170.07020.57
5.5.240.0030.04020.13
5.4.450.1530.06719.39
5.4.440.0200.06319.59
5.4.430.0170.04719.53
5.4.420.0170.04719.65
5.4.410.0030.06019.36
5.4.400.0100.05319.37
5.4.390.0170.04719.14
5.4.380.0100.05718.98
5.4.370.0000.06019.13
5.4.360.0230.03719.04
5.4.350.0070.06319.17
5.4.340.0130.05019.04
5.4.320.0000.06319.04
5.4.310.0130.04719.04
5.4.300.0170.04319.12
5.4.290.0100.05019.01
5.4.280.0070.06019.04
5.4.270.0070.05719.16
5.4.260.0100.05319.01
5.4.250.0030.06019.03
5.4.240.0130.05019.01
5.4.230.0200.04318.96
5.4.220.0200.04319.04
5.4.210.0170.04718.96
5.4.200.0100.05316.70
5.4.190.0170.05018.95
5.4.180.0070.05319.04
5.4.170.0130.05019.02
5.4.160.0130.04718.97
5.4.150.0030.05718.86
5.4.140.0070.05316.48
5.4.130.0100.04716.37
5.4.120.0070.05016.44
5.4.110.0130.04316.43
5.4.100.0130.04716.42
5.4.90.0130.04716.38
5.4.80.0100.05016.21
5.4.70.0170.05016.21
5.4.60.0130.05016.52
5.4.50.0070.05016.46
5.4.40.0230.04316.32
5.4.30.0100.05016.15
5.4.20.0030.05716.46
5.4.10.0130.05016.15
5.4.00.0130.04315.60
5.3.290.0070.05714.54
5.3.280.0030.05714.41
5.3.270.0070.05314.40
5.3.260.0100.05314.36
5.3.250.0100.05014.52
5.3.240.0130.04714.63
5.3.230.0100.05014.34
5.3.220.0100.07014.59
5.3.210.0100.05314.38
5.3.200.0100.06014.39
5.3.190.0130.04714.53
5.3.180.0030.05314.54
5.3.170.0070.05314.59
5.3.160.0070.05314.59
5.3.150.0100.05014.43
5.3.140.0130.04714.39
5.3.130.0000.06014.36
5.3.120.0130.05014.36
5.3.110.0130.05014.43
5.3.100.0070.05313.91
5.3.90.0070.05314.04
5.3.80.0030.05313.82
5.3.70.0070.05313.90
5.3.60.0030.05313.84
5.3.50.0070.05013.81
5.3.40.0030.05713.75
5.3.30.0100.04713.66
5.3.20.0100.04713.70
5.3.10.0130.04713.52
5.3.00.0130.04313.47
5.2.170.0070.04010.96
5.2.160.0130.03310.98
5.2.150.0030.04711.12
5.2.140.0000.04711.18
5.2.130.0070.04011.13
5.2.120.0000.04310.99
5.2.110.0100.03710.85
5.2.100.0130.03010.92
5.2.90.0070.04011.00
5.2.80.0130.03710.85
5.2.70.0070.04011.07
5.2.60.0000.04711.02
5.2.50.0100.03711.09
5.2.40.0130.03010.80
5.2.30.0100.03711.05
5.2.20.0070.04010.79
5.2.10.0030.04010.89
5.2.00.0130.03310.60
5.1.60.0100.03010.01
5.1.50.0070.0339.90
5.1.40.0070.0339.88
5.1.30.0030.04010.20
5.1.20.0030.04010.22
5.1.10.0170.0239.95
5.1.00.0000.04010.08
5.0.50.0030.0308.44
5.0.40.0070.0238.41
5.0.30.0070.0408.11
5.0.20.0070.0238.05
5.0.10.0100.0238.17
5.0.00.0030.0438.05
4.4.90.0000.0235.87
4.4.80.0000.0235.71
4.4.70.0000.0235.69
4.4.60.0030.0205.73
4.4.50.0030.0205.80
4.4.40.0030.0335.84
4.4.30.0030.0205.80
4.4.20.0000.0235.91
4.4.10.0070.0235.78
4.4.00.0000.0375.74
4.3.110.0000.0235.73
4.3.100.0000.0235.79
4.3.90.0030.0205.82
4.3.80.0030.0335.71
4.3.70.0100.0135.76
4.3.60.0070.0175.62
4.3.50.0000.0235.63
4.3.40.0070.0305.71
4.3.30.0000.0234.48
4.3.20.0100.0204.40
4.3.10.0000.0234.41
4.3.00.0330.01015.68

preferences:
65.66 ms | 401 KiB | 5 Q