3v4l.org

run code in 300+ PHP versions simultaneously
<?php $period = new DatePeriod( new DateTime('2010-05-01'), new DateInterval('P1D'), new DateTime('2010-05-10') ); $iteratorOutput = $arrayOutput = ''; foreach ($period as $date) { $iteratorOutput .= $date->format("l Y-m-d H:i:s\n"); } foreach (iterator_to_array($period) as $date) { $arrayOutput .= $date->format("l Y-m-d H:i:s\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.0090.00618.56
8.3.50.0090.01422.19
8.3.40.0110.00419.09
8.3.30.0140.00719.21
8.3.20.0040.01119.93
8.3.10.0000.00820.64
8.3.00.0060.00319.52
8.2.180.0110.00717.13
8.2.170.0180.00022.96
8.2.160.0030.01020.45
8.2.150.0060.00924.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00422.25
8.2.110.0060.00320.27
8.2.100.0070.00418.22
8.2.90.0080.00019.25
8.2.80.0040.00417.97
8.2.70.0040.00417.88
8.2.60.0080.00017.93
8.2.50.0060.00618.07
8.2.40.0060.00318.16
8.2.30.0030.00619.37
8.2.20.0080.00017.95
8.2.10.0000.00718.22
8.2.00.0040.00417.88
8.1.280.0100.00725.92
8.1.270.0060.00323.83
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0040.00423.96
8.1.230.0070.00419.09
8.1.220.0000.00817.91
8.1.210.0040.00418.77
8.1.200.0040.00717.47
8.1.190.0080.00017.47
8.1.180.0040.00418.10
8.1.170.0000.00818.62
8.1.160.0040.00421.95
8.1.150.0040.00418.97
8.1.140.0000.00717.70
8.1.130.0030.00317.93
8.1.120.0030.00417.58
8.1.110.0060.00317.55
8.1.100.0000.00717.66
8.1.90.0070.00017.61
8.1.80.0030.00517.63
8.1.70.0030.00317.60
8.1.60.0030.00617.77
8.1.50.0030.00517.70
8.1.40.0030.00517.64
8.1.30.0000.00817.62
8.1.20.0000.00817.79
8.1.10.0040.00417.62
8.1.00.0040.00417.73
8.0.300.0050.00218.77
8.0.290.0030.00617.00
8.0.280.0000.00718.53
8.0.270.0000.00817.18
8.0.260.0060.00017.38
8.0.250.0000.00717.06
8.0.240.0040.00417.20
8.0.230.0030.00317.13
8.0.220.0070.00017.01
8.0.210.0070.00017.09
8.0.200.0050.00517.02
8.0.190.0030.00517.22
8.0.180.0000.00817.09
8.0.170.0030.00517.17
8.0.160.0070.00017.05
8.0.150.0070.00017.09
8.0.140.0040.00417.01
8.0.130.0050.00013.39
8.0.120.0040.00717.07
8.0.110.0040.00417.09
8.0.100.0040.00417.04
8.0.90.0000.00716.98
8.0.80.0030.01817.05
8.0.70.0040.00416.91
8.0.60.0040.00417.10
8.0.50.0000.00716.95
8.0.30.0100.01017.18
8.0.20.0150.00417.40
8.0.10.0040.00417.18
8.0.00.0120.00716.86
7.4.330.0050.00015.21
7.4.320.0030.00316.73
7.4.300.0030.00316.65
7.4.290.0070.00016.74
7.4.280.0080.00016.76
7.4.270.0000.00716.75
7.4.260.0000.00716.62
7.4.250.0030.00516.50
7.4.240.0000.00716.75
7.4.230.0000.00716.73
7.4.220.0150.00816.59
7.4.210.0100.00316.79
7.4.200.0070.00016.53
7.4.160.0110.00416.77
7.4.150.0120.00617.40
7.4.140.0120.00517.86
7.4.130.0080.00816.69
7.4.120.0120.00516.54
7.4.110.0070.01816.64
7.4.100.0100.01116.64
7.4.90.0060.01216.72
7.4.80.0120.00619.37
7.4.70.0000.02116.64
7.4.60.0100.00616.75
7.4.50.0000.00716.78
7.4.40.0090.00916.64
7.4.30.0060.00916.55
7.4.00.0040.01215.18
7.3.330.0030.00313.24
7.3.320.0000.00513.31
7.3.310.0050.00316.34
7.3.300.0000.00616.40
7.3.290.0110.00416.40
7.3.280.0120.00416.37
7.3.270.0070.01717.40
7.3.260.0060.01616.80
7.3.250.0090.01116.60
7.3.240.0100.00716.32
7.3.230.0130.00716.45
7.3.210.0080.00816.58
7.3.200.0100.00719.39
7.3.190.0090.00816.70
7.3.180.0030.01416.44
7.3.170.0090.00616.63
7.3.160.0140.00716.61
7.3.10.0030.01316.83
7.3.00.0060.00616.90
7.2.330.0090.01016.93
7.2.320.0120.01216.84
7.2.310.0070.01017.00
7.2.300.0090.00616.89
7.2.290.0030.01316.92
7.2.130.0110.00417.32
7.2.120.0110.00316.84
7.2.110.0000.01816.99
7.2.100.0040.00817.07
7.2.90.0060.01017.24
7.2.80.0080.00716.82
7.2.70.0130.00316.89
7.2.60.0060.01017.02
7.2.50.0040.00916.88
7.2.40.0000.01117.23
7.2.30.0030.00717.16
7.2.20.0040.01117.16
7.2.10.0030.00717.07
7.2.00.0030.00918.43
7.1.250.0070.00415.90
7.1.240.0040.01116.14
7.1.230.0140.00316.04
7.1.220.0080.00315.95
7.1.210.0070.00715.99
7.1.200.0050.00615.93
7.1.190.0060.00616.03
7.1.180.0040.00415.68
7.1.170.0060.00315.82
7.1.160.0030.01016.00
7.1.150.0150.00316.17
7.1.140.0080.00415.56
7.1.130.0100.00315.91
7.1.120.0070.00315.72
7.1.110.0040.00416.02
7.1.100.0000.00817.09
7.1.90.0000.01016.01
7.1.80.0110.00415.85
7.1.70.0040.00916.73
7.1.60.0070.00917.66
7.1.50.0050.00716.60
7.1.40.0120.00015.89
7.1.30.0030.01215.88
7.1.20.0000.01516.02
7.1.10.0040.00715.91
7.1.00.0080.04019.06
7.0.330.0000.01115.58
7.0.320.0000.01315.56
7.0.310.0100.00315.66
7.0.300.0070.00715.61
7.0.290.0030.00715.65
7.0.280.0070.00315.59
7.0.270.0070.00315.56
7.0.260.0120.00315.55
7.0.250.0000.01115.66
7.0.240.0030.00615.67
7.0.230.0080.00315.77
7.0.220.0110.00315.35
7.0.210.0060.00315.51
7.0.200.0010.00716.13
7.0.190.0000.01015.65
7.0.180.0060.00615.65
7.0.170.0000.00815.64
7.0.160.0100.00315.74
7.0.150.0090.00315.21
7.0.140.0080.03818.77
7.0.130.0090.00015.33
7.0.120.0000.01315.66
7.0.110.0040.01115.58
7.0.100.0000.00815.55
7.0.90.0060.00615.45
7.0.80.0060.00615.63
7.0.70.0040.00815.25
7.0.60.0130.04517.62
7.0.50.0090.04016.57
7.0.40.0080.03516.84
7.0.30.0250.03416.84
7.0.20.0170.03816.80
7.0.10.0080.02516.77
7.0.00.0080.04516.73
5.6.380.0070.01014.74
5.6.370.0060.01214.43
5.6.360.0070.01114.31
5.6.350.0110.00714.70
5.6.340.0120.00014.34
5.6.330.0000.01414.46
5.6.320.0100.00314.51
5.6.310.0040.00814.42
5.6.300.0060.00614.32
5.6.290.0090.00314.50
5.6.280.0050.03517.80
5.6.270.0000.00814.68
5.6.260.0080.00014.59
5.6.250.0060.00314.41
5.6.240.0100.00014.70
5.6.230.0110.00714.52
5.6.220.0130.00314.44
5.6.210.0050.04817.73
5.6.200.0170.04016.26
5.6.190.0040.04717.36
5.6.180.0300.04017.43
5.6.170.0230.03517.62
5.6.160.0050.04717.50
5.6.150.0080.04316.32
5.6.140.0100.04216.40
5.6.130.0030.04416.37
5.6.120.0070.03717.72
5.6.110.0110.04217.69
5.6.100.0070.03417.60
5.6.90.0080.04217.80
5.6.80.0050.04817.33
5.6.70.0130.00614.21
5.6.60.0070.00714.50
5.6.50.0100.00314.17
5.6.40.0030.01014.62
5.6.30.0070.00714.53
5.6.20.0070.00714.44
5.6.10.0030.00614.30
5.6.00.0070.00414.39
5.5.380.0040.00811.64
5.5.370.0140.00011.64
5.5.360.0040.00711.64
5.5.350.0100.03916.01
5.5.340.0090.03014.78
5.5.330.0080.03215.92
5.5.320.0150.02615.97
5.5.310.0210.03615.98
5.5.300.0090.03814.81
5.5.290.0050.04714.81
5.5.280.0030.02716.16
5.5.270.0000.03116.29
5.5.260.0050.04516.20
5.5.250.0070.04316.11
5.5.240.1100.02215.93
5.5.230.0000.00911.64
5.5.220.0090.00311.64
5.5.210.0050.00511.64
5.5.200.0030.00611.64
5.5.190.0080.00411.64
5.5.180.0070.00411.64
5.5.170.0100.00311.64
5.5.160.0040.00411.64
5.5.150.0100.00311.64
5.5.140.0050.00511.64
5.5.130.0040.00411.64
5.5.120.0030.00911.64
5.5.110.0090.00011.64
5.5.100.0130.00011.64
5.5.90.0070.00711.64
5.5.80.0030.00511.64
5.5.70.0060.00611.64
5.5.60.0040.00711.64
5.5.50.0060.00611.64
5.5.40.0000.01111.64
5.5.30.0000.01311.64
5.5.20.0070.00011.64
5.5.10.0070.00411.64
5.5.00.0080.00011.64
5.4.450.0130.04115.52
5.4.440.0070.03415.37
5.4.430.0300.02215.60
5.4.420.0120.02515.56
5.4.410.0140.02515.30
5.4.400.0150.03315.26
5.4.390.0120.02315.29
5.4.380.0120.02515.36
5.4.370.0130.02015.35
5.4.360.0120.02615.44
5.4.350.0140.02015.22
5.4.340.0120.02015.29
5.4.330.0060.00611.64
5.4.320.0170.01815.26
5.4.310.0120.02715.37
5.4.300.0120.02215.44
5.4.290.0130.02115.38
5.4.280.0140.02015.38
5.4.270.0100.02215.37
5.4.260.0120.02215.27
5.4.250.0120.02215.44
5.4.240.0160.02215.36
5.4.230.0120.03315.36
5.4.220.0120.02015.36
5.4.210.0130.02615.36
5.4.200.0150.03215.36
5.4.190.0120.02715.37
5.4.180.0080.02315.22
5.4.170.0170.03715.39
5.4.160.0120.02515.18
5.4.150.0160.03315.35
5.4.140.0120.03114.01
5.4.130.0100.02514.00
5.4.120.0120.02413.97
5.4.110.0070.02514.04
5.4.100.0100.02313.88
5.4.90.0120.02414.04
5.4.80.0130.02014.05
5.4.70.0190.02314.09
5.4.60.0150.04013.98
5.4.50.0130.03613.98
5.4.40.0130.01813.87
5.4.30.0100.02614.06
5.4.20.0170.01314.02
5.4.10.0100.02413.98
5.4.00.0120.02013.75
5.3.290.0090.02413.13
5.3.280.0130.03213.05
5.3.270.0130.02613.10
5.3.260.0160.03813.07
5.3.250.0130.01813.10
5.3.240.0150.04013.08
5.3.230.0150.01913.09
5.3.220.0210.03013.15
5.3.210.0150.03513.07
5.3.200.0150.03913.03
5.3.190.0130.02813.03
5.3.180.0120.02513.11
5.3.170.0120.02213.04
5.3.160.0170.03413.08
5.3.150.0130.02413.08
5.3.140.0090.02413.00
5.3.130.0160.02313.03
5.3.120.0150.02913.09
5.3.110.0080.02413.14
5.3.100.0150.03912.76
5.3.90.0180.03512.73
5.3.80.0220.03512.81
5.3.70.0230.02512.76
5.3.60.0230.03012.72
5.3.50.0130.03612.76
5.3.40.0130.02412.77
5.3.30.0160.01812.67
5.3.20.0180.03712.57
5.3.10.0100.02712.54
5.3.00.0120.04012.69
5.2.170.0120.02611.40
5.2.160.0150.01811.31
5.2.150.0170.03011.36
5.2.140.0140.02111.36
5.2.130.0160.01511.29
5.2.120.0180.01711.38
5.2.110.0120.02211.29
5.2.100.0140.02711.39
5.2.90.0080.01911.30
5.2.80.0130.03111.29
5.2.70.0150.02811.29
5.2.60.0130.01611.28
5.2.50.0150.02511.25
5.2.40.0090.02311.23
5.2.30.0130.03011.26
5.2.20.0130.01611.30
5.2.10.0100.03211.29
5.2.00.0130.01711.15
5.1.60.0130.02710.80
5.1.50.0110.02510.82
5.1.40.0080.02010.74
5.1.30.0160.02611.02
5.1.20.0130.02910.97
5.1.10.0130.02610.82
5.1.00.0130.02310.84
5.0.50.0050.02210.04
5.0.40.0090.01710.07
5.0.30.0100.0309.99
5.0.20.0080.01810.00
5.0.10.0230.0129.89
5.0.00.0030.0199.93
4.4.90.0070.0129.79
4.4.80.0070.0129.79
4.4.70.0070.0189.79
4.4.60.0050.0209.79
4.4.50.0060.0119.79
4.4.40.0040.0179.79
4.4.30.0050.0209.79
4.4.20.0030.0129.79
4.4.10.0070.0209.79
4.4.00.0040.0269.79
4.3.110.0050.0209.79
4.3.100.0030.0149.79
4.3.90.0070.0159.79
4.3.80.0030.0229.79
4.3.70.0050.0179.79
4.3.60.0080.0169.79
4.3.50.0070.0089.79
4.3.40.0070.0239.79
4.3.30.0080.0159.79
4.3.20.0030.0209.79
4.3.10.0030.0209.79
4.3.00.0070.0169.79

preferences:
44.98 ms | 401 KiB | 5 Q