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"); } var_dump($iteratorOutput ); foreach (iterator_to_array($period) as $date) { $arrayOutput .= $date->format("l Y-m-d H:i:s\n"); } var_dump($arrayOutput );

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.75
8.3.50.0110.01421.95
8.3.40.0110.00418.97
8.3.30.0110.00419.21
8.3.20.0060.00320.38
8.3.10.0030.00620.61
8.3.00.0080.00019.38
8.2.180.0090.00618.54
8.2.170.0090.00622.96
8.2.160.0000.01520.53
8.2.150.0070.00724.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00719.95
8.2.110.0000.00919.33
8.2.100.0030.00917.97
8.2.90.0080.00020.59
8.2.80.0000.00818.05
8.2.70.0000.00918.05
8.2.60.0040.00418.34
8.2.50.0080.00018.07
8.2.40.0000.00918.29
8.2.30.0000.00818.30
8.2.20.0040.00417.96
8.2.10.0040.00418.24
8.2.00.0020.00517.98
8.1.280.0100.01025.92
8.1.270.0110.00723.97
8.1.260.0030.00626.35
8.1.250.0020.00528.09
8.1.240.0090.00022.13
8.1.230.0080.00320.91
8.1.220.0000.00817.76
8.1.210.0050.00319.00
8.1.200.0030.00517.48
8.1.190.0040.00417.48
8.1.180.0040.00418.10
8.1.170.0000.00818.65
8.1.160.0000.00718.90
8.1.150.0040.00419.05
8.1.140.0000.00717.62
8.1.130.0000.00717.93
8.1.120.0000.00717.74
8.1.110.0040.00417.65
8.1.100.0030.00517.65
8.1.90.0040.00417.68
8.1.80.0060.00317.69
8.1.70.0030.00317.61
8.1.60.0030.00617.75
8.1.50.0050.00317.68
8.1.40.0050.00217.65
8.1.30.0000.00717.70
8.1.20.0040.00417.82
8.1.10.0040.00417.63
8.1.00.0070.00017.80
8.0.300.0000.00720.02
8.0.290.0000.00817.00
8.0.280.0030.00318.47
8.0.270.0040.00417.36
8.0.260.0070.00017.27
8.0.250.0070.00017.16
8.0.240.0000.00817.18
8.0.230.0000.00717.07
8.0.220.0070.00017.09
8.0.210.0050.00317.14
8.0.200.0060.00317.18
8.0.190.0090.00017.07
8.0.180.0040.00417.15
8.0.170.0060.00317.05
8.0.160.0040.00417.11
8.0.150.0060.00317.08
8.0.140.0070.00317.05
8.0.130.0060.00013.46
8.0.120.0040.00417.13
8.0.110.0000.00717.19
8.0.100.0030.00517.09
8.0.90.0040.00417.13
8.0.80.0060.01517.09
8.0.70.0000.00717.10
8.0.60.0000.00817.11
8.0.50.0070.00017.23
8.0.30.0130.00617.39
8.0.20.0190.00317.44
8.0.10.0000.00717.20
8.0.00.0170.00617.14
7.4.330.0050.00015.21
7.4.320.0000.00716.79
7.4.300.0000.00716.75
7.4.290.0030.00316.77
7.4.280.0040.00416.64
7.4.270.0070.00016.66
7.4.260.0000.00716.68
7.4.250.0000.00716.77
7.4.240.0030.00416.66
7.4.230.0070.00016.66
7.4.220.0160.01016.80
7.4.210.0090.00616.77
7.4.200.0040.00416.76
7.4.160.0060.00916.64
7.4.150.0150.00917.40
7.4.140.0120.00917.86
7.4.130.0080.00916.65
7.4.120.0100.00816.75
7.4.110.0090.00916.62
7.4.100.0080.00816.56
7.4.90.0100.01016.46
7.4.80.0060.01519.37
7.4.70.0060.01116.80
7.4.60.0030.01316.61
7.4.50.0000.00816.79
7.4.40.0060.01016.73
7.4.30.0160.00616.62
7.4.00.0110.00715.21
7.3.330.0030.00313.32
7.3.320.0000.00513.29
7.3.310.0070.00016.27
7.3.300.0070.00016.41
7.3.290.0050.01416.43
7.3.280.0080.00716.38
7.3.270.0100.01017.40
7.3.260.0160.00416.63
7.3.250.0110.00916.66
7.3.240.0060.01816.65
7.3.230.0100.00616.55
7.3.210.0060.01116.69
7.3.200.0160.00619.39
7.3.190.0130.00916.40
7.3.180.0070.01016.83
7.3.170.0120.00416.46
7.3.160.0090.00616.52
7.3.120.0030.01415.18
7.3.110.0040.01414.80
7.3.100.0150.00315.13
7.3.90.0070.00715.18
7.3.80.0110.00714.83
7.3.70.0110.00414.74
7.3.60.0130.00014.90
7.3.50.0060.00315.12
7.3.40.0060.00615.01
7.3.30.0060.00914.99
7.3.20.0070.00316.82
7.3.10.0060.00816.72
7.3.00.0050.00716.82
7.2.330.0200.00316.64
7.2.320.0030.01817.01
7.2.310.0030.01417.04
7.2.300.0190.00317.00
7.2.290.0000.01816.61
7.2.250.0120.00815.43
7.2.240.0110.01115.16
7.2.230.0070.01015.36
7.2.220.0040.00815.36
7.2.210.0040.01415.22
7.2.200.0140.00415.04
7.2.190.0060.00915.19
7.2.180.0090.00615.18
7.2.170.0170.00015.33
7.2.130.0020.01316.91
7.2.120.0050.01016.93
7.2.110.0070.00617.05
7.2.100.0080.00716.89
7.2.90.0030.01017.19
7.2.80.0090.00516.99
7.2.70.0080.01116.90
7.2.60.0100.00317.22
7.2.50.0050.00617.15
7.2.40.0070.00816.91
7.2.30.0100.00417.25
7.2.20.0080.00516.93
7.2.10.0080.00517.02
7.2.00.0100.00417.84
7.1.330.0030.01416.05
7.1.320.0070.01015.96
7.1.310.0070.01015.99
7.1.300.0090.00315.91
7.1.290.0030.00916.12
7.1.280.0060.00615.63
7.1.270.0120.00316.06
7.1.260.0030.01016.08
7.1.250.0030.00915.88
7.1.200.0040.01116.08
7.1.70.0030.00617.49
7.1.60.0030.00917.38
7.1.50.0000.01117.18
7.1.40.0090.00316.79
7.1.30.0070.00416.64
7.1.20.0040.00816.93
7.1.10.0000.01116.89
7.1.00.0040.00416.83
7.0.200.0070.00016.67
7.0.190.0000.00817.00
7.0.180.0000.00716.44
7.0.170.0050.00316.51
7.0.160.0070.01016.46
7.0.150.0000.01116.59
7.0.140.0070.00416.46
7.0.130.0040.00416.72
7.0.120.0070.00716.79
7.0.110.0060.00916.62
7.0.100.0030.01316.63
7.0.90.0040.00816.69
7.0.80.0030.00716.65
7.0.70.0070.01016.59
7.0.60.0000.01116.37
7.0.50.0040.01216.80
7.0.40.0030.00614.85
7.0.30.0040.00414.85
7.0.20.0040.00414.85
7.0.10.0020.00514.85
7.0.00.0000.01014.85
5.6.300.0000.05920.75
5.6.290.0000.04520.83
5.6.280.0000.05520.81
5.6.270.0070.07821.02
5.6.260.0030.05021.02
5.6.250.0000.06620.80
5.6.240.0000.09220.82
5.6.230.0030.04320.95
5.6.220.0000.07521.02
5.6.210.0030.06821.13
5.6.200.0000.05421.05
5.6.190.0000.06120.86
5.6.180.0030.05520.82
5.6.170.0030.04420.95
5.6.160.0170.02721.01
5.6.150.0030.04421.05
5.6.140.0030.04521.00
5.6.130.0000.04520.81
5.6.120.0030.04120.72
5.6.110.0130.05720.71
5.6.100.0000.04720.91
5.6.90.0030.04020.80
5.6.80.0000.08320.20
5.6.70.0130.03620.15
5.6.60.0260.04320.36
5.6.50.0030.03920.41
5.6.40.0190.03220.18
5.6.30.0070.08220.15
5.6.20.0060.08820.15
5.6.10.0070.03720.20
5.6.00.0070.03720.16
5.5.380.0030.04917.54
5.5.370.0070.08117.48
5.5.360.0070.07717.61
5.5.350.0030.07817.45
5.5.340.0000.04317.86
5.5.330.0030.07217.96
5.5.320.0000.04518.11
5.5.310.0000.04618.13
5.5.300.0030.04118.07
5.5.290.0030.04318.11
5.5.280.0060.03817.97
5.5.270.0030.06118.02
5.5.260.0030.04018.05
5.5.250.0030.04117.89
5.5.240.0070.04917.46
5.5.230.0030.04017.32
5.5.220.0030.03917.34
5.5.210.0100.03717.36
5.5.200.0070.06717.42
5.5.190.0030.07617.18
5.5.180.0070.05217.42
5.5.160.0030.05017.38
5.5.150.0070.07017.34
5.5.140.0000.04217.21
5.5.130.0030.06717.25
5.5.120.0070.06217.15
5.5.110.0030.05217.36
5.5.100.0000.04217.27
5.5.90.0070.03316.94
5.5.80.0030.06717.27
5.5.70.0070.07117.26
5.5.60.0000.04117.27
5.5.50.0030.04017.30
5.5.40.0000.04116.93
5.5.30.0000.05317.06
5.5.20.0000.05117.21
5.5.10.0100.06217.18
5.5.00.0030.04016.95
5.4.450.0000.04419.25
5.4.440.0100.07619.31
5.4.430.0030.06219.33
5.4.420.0000.04319.33
5.4.410.0030.07218.99
5.4.400.0030.03819.08
5.4.390.0030.05819.10
5.4.380.0070.04418.82
5.4.370.0100.06219.07
5.4.360.0030.07618.98
5.4.350.0070.08519.10
5.4.340.0000.04418.93
5.4.320.0130.06719.05
5.4.310.0100.05118.88
5.4.300.0060.04819.04
5.4.290.0030.07318.88
5.4.280.0070.05119.16
5.4.270.0030.07119.06
5.4.260.0070.04319.07
5.4.250.0070.03319.16
5.4.240.0100.04819.13
5.4.230.0060.03819.14
5.4.220.0030.03819.14
5.4.210.0030.03919.02
5.4.200.0030.03719.13
5.4.190.0030.07818.89
5.4.180.0030.06918.87
5.4.170.0100.06619.00
5.4.160.0030.03818.82
5.4.150.0100.05618.82
5.4.140.0000.03916.55
5.4.130.0030.05916.41
5.4.120.0030.06116.70
5.4.110.0070.03316.55
5.4.100.0030.03416.72
5.4.90.0030.03416.72
5.4.80.0070.06316.61
5.4.70.0000.07116.68
5.4.60.0000.04116.38
5.4.50.0030.03716.64
5.4.40.0000.05516.39
5.4.30.0040.03916.52
5.4.20.0030.03616.70
5.4.10.0000.03916.40
5.4.00.0030.06615.97
5.3.290.0070.07214.85
5.3.280.0160.03614.85
5.3.270.0030.07914.85
5.3.260.0070.03314.85
5.3.250.0030.04614.85
5.3.240.0070.03114.85
5.3.230.0000.07614.85
5.3.220.0100.06414.85
5.3.210.0070.03314.85
5.3.200.0030.03514.85
5.3.190.0000.08514.85
5.3.180.0070.04914.85
5.3.170.0100.04914.85
5.3.160.0070.04014.85
5.3.150.0030.03914.85
5.3.140.0000.04414.85
5.3.130.0000.04414.85
5.3.120.0100.03614.85
5.3.110.0030.07814.85
5.3.100.0000.04114.85
5.3.90.0000.07714.85
5.3.80.0030.04714.85
5.3.70.0000.03814.85
5.3.60.0000.03814.85
5.3.50.0000.03914.85
5.3.40.0000.08014.85
5.3.30.0000.05214.85
5.3.20.0030.06014.85
5.3.10.0030.04414.85
5.3.00.0030.06414.85
5.2.170.0030.04914.85
5.2.160.0000.06714.85
5.2.150.0000.03514.85
5.2.140.0000.04914.85
5.2.130.0030.06214.85
5.2.120.0060.05414.85
5.2.110.0000.02914.85
5.2.100.0030.05514.85
5.2.90.0030.06114.85
5.2.80.0000.06614.85
5.2.70.0030.03014.85
5.2.60.0000.03114.85
5.2.50.0030.03214.85
5.2.40.0030.02714.85
5.2.30.0000.03414.85
5.2.20.0070.05214.85
5.2.10.0090.02514.85
5.2.00.0000.06514.85
5.1.60.0030.04014.85
5.1.50.0030.03614.85
5.1.40.0030.02314.85
5.1.30.0030.02514.85
5.1.20.0040.02514.85
5.1.10.0000.02614.85
5.1.00.0000.02814.85
5.0.50.0000.02214.85
5.0.40.0030.03814.85
5.0.30.0070.02714.85
5.0.20.0030.04114.85
5.0.10.0000.02114.85
5.0.00.0030.06914.85
4.4.90.0000.02314.85
4.4.80.0000.01814.85
4.4.70.0070.03014.85
4.4.60.0030.01414.85
4.4.50.0000.02114.85
4.4.40.0000.03114.85
4.4.30.0000.01814.85
4.4.20.0000.01614.85
4.4.10.0000.03914.85
4.4.00.0100.04814.85
4.3.110.0000.01914.85
4.3.100.0040.03214.85
4.3.90.0030.02114.85
4.3.80.0000.05914.85
4.3.70.0000.03614.85
4.3.60.0060.02814.85
4.3.50.0030.03514.85
4.3.40.0000.05014.85
4.3.30.0040.03614.85
4.3.20.0030.02714.85
4.3.10.0000.01714.85
4.3.00.0060.03214.85

preferences:
49.5 ms | 401 KiB | 5 Q