3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "2007-01-01"; $b = "2008-02-15"; $i = date("Ym", strtotime($a)); while($i <= date("Ym", strtotime($b))){ echo $i."\n"; if(substr($i, 4, 2) == "12") $i = (date("Y", strtotime($i."01")) + 1)."01"; else $i++; }

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.4.20.0040.00417.79
8.4.10.0120.00917.87
8.3.150.0120.00617.05
8.3.140.0100.00018.92
8.3.130.0100.01018.70
8.3.120.0060.00318.91
8.3.110.0140.00016.74
8.3.100.0030.00716.80
8.3.90.0040.00426.77
8.3.80.0060.00619.36
8.3.70.0190.00318.68
8.3.60.0100.00716.75
8.3.50.0090.00922.10
8.3.40.0140.00419.02
8.3.30.0040.01119.09
8.3.20.0040.00420.16
8.3.10.0070.00721.89
8.3.00.0130.00319.77
8.2.260.0080.00016.50
8.2.250.0100.00618.55
8.2.240.0030.00517.25
8.2.230.0100.00020.94
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0040.00418.88
8.2.190.0090.00918.29
8.2.180.0140.00718.13
8.2.170.0150.00319.01
8.2.160.0100.00722.96
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0050.00320.80
8.2.110.0100.00019.21
8.2.100.0190.00318.19
8.2.90.0140.00618.24
8.2.80.0150.00418.21
8.2.70.0130.00338.57
8.2.60.0160.00438.57
8.2.50.0130.00738.62
8.2.40.0130.00439.46
8.2.30.0100.00738.67
8.2.20.0110.00438.59
8.2.10.0090.00838.65
8.2.00.0080.00838.62
8.1.310.0110.00716.21
8.1.300.0080.00020.34
8.1.290.0150.00330.84
8.1.280.0140.00325.92
8.1.270.0050.00323.99
8.1.260.0120.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00321.19
8.1.230.0200.00020.53
8.1.220.0160.00218.16
8.1.210.0120.00718.64
8.1.200.0170.00438.42
8.1.190.0140.00538.38
8.1.180.0110.00738.62
8.1.170.0120.00738.85
8.1.160.0140.00339.95
8.1.150.0120.00538.91
8.1.140.0100.00538.48
8.1.130.0130.00438.54
8.1.120.0120.00538.47
8.1.110.0140.00338.45
8.1.100.0120.00638.43
8.1.90.0110.00633.27
8.1.80.0140.00333.25
8.1.70.0120.00533.19
8.1.60.0090.00730.20
8.1.50.0100.00630.14
8.1.40.0130.00428.00
8.1.30.0140.00428.13
8.1.20.0130.00426.63
8.1.10.0150.00326.56
8.1.00.0140.00226.54
8.0.300.0130.00419.31
8.0.290.0140.00338.26
8.0.280.0130.00438.74
8.0.270.0120.00538.25
8.0.260.0160.00038.37
8.0.250.0130.00438.35
8.0.240.0150.00338.30
8.0.230.0130.00538.33
8.0.220.0110.00533.01
8.0.210.0110.00633.04
8.0.200.0120.00433.02
8.0.190.0130.00529.83
8.0.180.0120.00629.82
8.0.170.0120.00527.72
8.0.160.0140.00327.72
8.0.150.0100.00626.17
8.0.140.0090.00626.15
8.0.130.0110.00425.68
8.0.120.0130.00426.18
8.0.110.0100.00626.19
8.0.100.0120.00426.15
8.0.90.0120.00426.19
8.0.80.0110.00626.15
8.0.70.0110.00526.17
8.0.60.0110.00526.17
8.0.50.0120.00326.19
8.0.30.0100.00822.46
8.0.20.0110.00822.48
8.0.10.0110.00623.57
8.0.00.0120.00721.65
7.4.330.0100.00337.65
7.4.320.0090.00429.55
7.4.300.0110.00632.80
7.4.290.0100.00529.57
7.4.280.0130.00427.41
7.4.270.0110.00525.85
7.4.260.0110.00525.85
7.4.250.0120.00425.86
7.4.240.0110.00424.74
7.4.230.0090.00725.84
7.4.220.0110.00625.90
7.4.210.0090.00725.87
7.4.200.0100.00425.85
7.4.190.0090.00827.42
7.4.180.0130.00427.45
7.4.160.0110.00622.52
7.4.150.0100.00622.60
7.4.140.0100.00622.16
7.4.130.0090.00821.58
7.4.120.0100.00621.62
7.4.110.0080.00821.58
7.4.100.0110.00621.29
7.4.90.0100.00621.20
7.4.80.0110.00621.09
7.4.70.0120.00520.63
7.4.60.0100.00820.63
7.4.50.0080.00820.59
7.4.40.0100.00820.61
7.4.30.0100.00920.58
7.4.20.0110.00720.22
7.4.10.0100.00719.93
7.4.00.0090.00919.46
7.3.330.0130.00325.22
7.3.320.0130.00425.16
7.3.310.0110.00625.62
7.3.300.0120.00525.66
7.3.290.0140.00325.67
7.3.280.0110.00622.88
7.3.270.0120.00622.40
7.3.260.0120.00522.31
7.3.250.0100.00921.50
7.3.240.0110.00721.93
7.3.230.0100.00821.44
7.3.220.0120.00721.40
7.3.210.0120.00721.08
7.3.200.0120.00520.79
7.3.190.0100.00920.51
7.3.180.0100.00720.50
7.3.170.0130.00620.53
7.3.160.0110.00720.52
7.3.150.0120.00520.52
7.3.140.0120.00620.29
7.3.130.0110.00819.78
7.3.120.0120.00619.34
7.3.110.0120.00718.96
7.3.100.0090.00818.96
7.3.90.0080.00918.84
7.3.80.0100.00718.60
7.3.70.0090.00818.34
7.3.60.0100.00717.94
7.3.50.0110.00717.73
7.3.40.0100.00817.70
7.3.30.0090.00817.45
7.3.20.0390.00717.86
7.3.10.0270.00817.84
7.3.00.0300.00817.53
7.2.340.0160.00722.07
7.2.330.0160.00721.29
7.2.320.0160.00721.27
7.2.310.0140.00820.68
7.2.300.0160.00820.74
7.2.290.0140.00920.71
7.2.280.0150.00720.70
7.2.270.0150.00720.48
7.2.260.0140.00820.03
7.2.250.0140.00819.78
7.2.240.0130.00819.16
7.2.230.0130.00819.16
7.2.220.0130.00718.98
7.2.210.0120.00718.82
7.2.200.0130.00818.59
7.2.190.0120.00818.09
7.2.180.0110.00817.90
7.2.170.0110.00817.94
7.2.160.0110.00817.68
7.2.150.0470.00818.10
7.2.140.0320.00818.13
7.2.130.0230.00717.81
7.2.120.0240.00717.82
7.2.110.0310.00717.77
7.2.100.0320.00817.60
7.2.90.0330.00917.62
7.2.80.0320.00717.58
7.2.70.0320.00817.64
7.2.60.0300.00817.64
7.2.50.0330.00817.63
7.2.40.0320.00917.66
7.2.30.0280.00817.70
7.2.20.0250.00817.63
7.2.10.0260.00917.62
7.2.00.0300.00817.69
7.1.330.0150.00818.94
7.1.320.0180.00718.72
7.1.310.0160.00818.52
7.1.300.0150.00717.67
7.1.290.0140.00817.68
7.1.280.0130.00917.46
7.1.270.0170.00817.20
7.1.260.0400.00617.12
7.1.250.0230.00716.76
7.1.240.0320.00816.74
7.1.230.0280.00816.82
7.1.220.0330.00816.64
7.1.210.0390.00816.60
7.1.200.0340.00816.58
7.1.190.0290.00816.60
7.1.180.0330.00816.59
7.1.170.0370.00716.60
7.1.160.0300.00816.60
7.1.150.0300.00816.61
7.1.140.0330.00616.64
7.1.130.0310.00716.59
7.1.120.0350.00716.56
7.1.110.0310.00816.64
7.1.100.0310.00716.62
7.1.90.0270.00816.60
7.1.80.0290.00816.67
7.1.70.0260.00916.60
7.1.60.0280.00917.90
7.1.50.0300.00717.87
7.1.40.0270.00817.85
7.1.30.0280.00817.89
7.1.20.0280.00817.84
7.1.10.0260.00816.60
7.1.00.0260.00816.58
7.0.330.0390.00816.34
7.0.320.0290.00816.44
7.0.310.0270.00816.22
7.0.300.0330.00616.28
7.0.290.0300.00816.20
7.0.280.0280.00816.25
7.0.270.0270.00816.26
7.0.260.0280.00916.23
7.0.250.0300.00716.33
7.0.240.0270.00816.31
7.0.230.0260.00716.32
7.0.220.0250.00816.29
7.0.210.0310.00816.30
7.0.200.0300.00716.31
7.0.190.0270.00716.30
7.0.180.0250.00816.31
7.0.170.0350.00716.31
7.0.160.0300.00816.28
7.0.150.0260.00816.30
7.0.140.0280.00816.28
7.0.130.0270.00816.30
7.0.120.0290.00616.30
7.0.110.0290.00716.30
7.0.100.0360.00716.29
7.0.90.0300.00916.30
7.0.80.0280.00716.30
7.0.70.0260.00816.30
7.0.60.0280.00716.29
7.0.50.0240.00716.34
7.0.40.0250.00816.26
7.0.30.0260.00716.27
7.0.20.0270.00816.25
7.0.10.0260.00716.29
7.0.00.0240.00816.29
5.6.400.0120.01017.10
5.6.390.0140.00917.11
5.6.380.0140.00816.68
5.6.370.0130.00916.71
5.6.360.0140.00816.66
5.6.350.0130.00916.66
5.6.340.0140.00816.66
5.6.330.0130.01016.68
5.6.320.0140.00916.64
5.6.310.0130.01016.64
5.6.300.0130.00916.57
5.6.290.0110.00916.59
5.6.280.0120.01016.63
5.6.270.0130.00916.57
5.6.260.0130.00916.62
5.6.250.0130.00916.59
5.6.240.0140.00716.60
5.6.230.0140.00816.63
5.6.220.0140.00716.62
5.6.210.0130.00916.59
5.6.200.0120.01016.67
5.6.190.0150.00716.62
5.6.180.0120.01016.59
5.6.170.0130.00816.60
5.6.160.0130.00916.61
5.6.150.0130.00916.61
5.6.140.0130.00816.62
5.6.130.0120.01016.62
5.6.120.0130.00816.58
5.6.110.0140.00816.60
5.6.100.0130.00916.57
5.6.90.0140.00916.56
5.6.80.0130.00816.54
5.6.70.0140.00816.57
5.6.60.0120.00916.51
5.6.50.0120.00916.52
5.6.40.0130.00916.54
5.6.30.0120.01016.55
5.6.20.0140.00916.52
5.6.10.0140.00916.52
5.6.00.0120.00916.50
5.5.380.0130.00816.07
5.5.370.0130.00715.98
5.5.360.0120.00915.95
5.5.350.0130.00715.94
5.5.340.0120.00815.97
5.5.330.0140.00715.95
5.5.320.0130.00815.96
5.5.310.0130.00915.95
5.5.300.0140.00815.96
5.5.290.0130.00815.91
5.5.280.0130.00815.95
5.5.270.0130.00815.91
5.5.260.0130.00815.94
5.5.250.0130.00915.92
5.5.240.0130.00815.90
5.5.230.0120.00815.92
5.5.220.0120.00915.89
5.5.210.0120.00815.93
5.5.200.0130.00815.90
5.5.190.0130.00815.90
5.5.180.0130.01015.90
5.5.170.0130.00816.33
5.5.160.0130.00815.90
5.5.150.0120.00915.95
5.5.140.0130.00815.85
5.5.130.0140.00815.84
5.5.120.0130.00815.91
5.5.110.0130.00815.90
5.5.100.0120.00915.92
5.5.90.0130.00715.92
5.5.80.0130.00715.96
5.5.70.0140.00715.93
5.5.60.0130.00815.93
5.5.50.0120.00815.89
5.5.40.0130.00815.89
5.5.30.0120.00915.91
5.5.20.0130.00815.92
5.5.10.0130.00815.88
5.5.00.0130.00815.87
5.4.450.0110.00613.72
5.4.440.0100.00613.71
5.4.430.0100.00613.75
5.4.420.0110.00613.74
5.4.410.0100.00613.74
5.4.400.0100.00613.70
5.4.390.0110.00513.71
5.4.380.0100.00613.74
5.4.370.0100.00713.70
5.4.360.0100.00713.72
5.4.350.0110.00513.69
5.4.340.0100.00613.74
5.4.330.0110.00613.72
5.4.320.0100.00613.72
5.4.310.0100.00613.69
5.4.300.0110.00613.71
5.4.290.0110.00613.72
5.4.280.0110.00613.72
5.4.270.0110.00613.70
5.4.260.0110.00613.69
5.4.250.0110.00613.74
5.4.240.0110.00513.70
5.4.230.0110.00713.65
5.4.220.0100.00613.66
5.4.210.0100.00613.67
5.4.200.0100.00613.68
5.4.190.0110.00613.67
5.4.180.0110.00613.67
5.4.170.0110.00513.69
5.4.160.0110.00613.66
5.4.150.0110.00613.68
5.4.140.0100.00713.72
5.4.130.0110.00613.73
5.4.120.0110.00613.73
5.4.110.0110.00613.73
5.4.100.0100.00613.76
5.4.90.0100.00613.73
5.4.80.0110.00613.76
5.4.70.0110.00613.74
5.4.60.0100.00713.76
5.4.50.0100.00613.74
5.4.40.0110.00613.72
5.4.30.0110.00613.75
5.4.20.0100.00613.76
5.4.10.0110.00613.76
5.4.00.0110.00613.72

preferences:
73.8 ms | 403 KiB | 5 Q