3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testDates = array("A", "B"); $myDates = array("C", "D"); foreach ($testDates as $date) { // do something } // other code executed foreach ($myDates as $myDate) { echo $date; }

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.0140.00016.61
8.3.50.0130.00821.06
8.3.40.0170.00018.84
8.3.30.0030.01518.95
8.3.20.0000.00720.39
8.3.10.0070.00023.48
8.3.00.0030.00619.13
8.2.180.0090.00618.41
8.2.170.0110.00722.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0110.00326.16
8.2.120.0070.00022.13
8.2.110.0060.00322.20
8.2.100.0030.01017.72
8.2.90.0080.00019.18
8.2.80.0000.00817.97
8.2.70.0060.00617.50
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0040.00418.34
8.2.30.0070.00017.94
8.2.20.0000.00717.71
8.2.10.0000.00717.94
8.2.00.0030.00617.55
8.1.280.0150.00025.92
8.1.270.0040.00423.86
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0060.00324.00
8.1.230.0080.00319.16
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0000.01017.36
8.1.190.0000.00817.55
8.1.180.0000.00918.10
8.1.170.0080.00018.71
8.1.160.0000.00721.92
8.1.150.0070.00018.69
8.1.140.0040.00417.40
8.1.130.0030.00317.86
8.1.120.0040.00417.46
8.1.110.0040.00417.34
8.1.100.0030.00417.48
8.1.90.0040.00417.43
8.1.80.0030.00317.46
8.1.70.0030.00317.28
8.1.60.0050.00317.61
8.1.50.0020.00517.46
8.1.40.0000.00817.58
8.1.30.0080.00017.56
8.1.20.0030.00617.54
8.1.10.0040.00417.36
8.1.00.0020.00517.32
8.0.300.0040.00418.77
8.0.290.0000.00917.18
8.0.280.0000.00718.35
8.0.270.0000.00717.26
8.0.260.0060.00017.12
8.0.250.0000.00716.96
8.0.240.0030.00316.98
8.0.230.0050.00316.95
8.0.220.0060.00016.89
8.0.210.0070.00016.84
8.0.200.0040.00416.96
8.0.190.0040.00416.84
8.0.180.0030.00316.95
8.0.170.0000.00816.93
8.0.160.0030.00316.98
8.0.150.0000.00716.72
8.0.140.0070.00016.88
8.0.130.0030.00313.33
8.0.120.0020.00516.80
8.0.110.0000.00716.96
8.0.100.0000.00716.93
8.0.90.0050.00316.66
8.0.80.0140.00316.88
8.0.70.0040.00417.00
8.0.60.0060.00316.92
8.0.50.0050.00216.76
8.0.30.0040.01516.99
8.0.20.0090.01417.40
8.0.10.0070.00016.90
8.0.00.0090.01016.75
7.4.330.0000.00515.00
7.4.320.0000.00616.55
7.4.300.0000.00816.48
7.4.290.0000.00716.45
7.4.280.0030.00316.58
7.4.270.0040.00416.59
7.4.260.0000.00816.57
7.4.250.0000.00716.53
7.4.240.0020.00516.44
7.4.230.0070.00016.48
7.4.220.0070.01016.59
7.4.210.0070.00916.53
7.4.200.0070.00016.33
7.4.190.0030.00316.46
7.4.160.0170.00316.40
7.4.150.0120.00617.40
7.4.140.0120.00917.86
7.4.130.0070.01016.57
7.4.120.0090.00816.48
7.4.110.0100.00616.47
7.4.100.0070.01716.30
7.4.90.0070.01316.47
7.4.80.0090.00919.39
7.4.70.0090.00816.36
7.4.60.0120.00616.32
7.4.50.0040.00416.58
7.4.40.0000.01422.77
7.4.30.0030.01316.71
7.4.10.0070.01015.09
7.4.00.0060.00915.08
7.3.330.0030.00313.10
7.3.320.0060.00013.09
7.3.310.0040.00416.30
7.3.300.0030.00316.30
7.3.290.0120.00316.28
7.3.280.0090.00816.27
7.3.270.0060.01117.40
7.3.260.0090.00816.51
7.3.250.0090.00916.35
7.3.240.0160.00716.47
7.3.230.0080.00816.58
7.3.210.0120.00316.42
7.3.200.0080.00816.55
7.3.190.0070.01016.29
7.3.180.0100.01016.21
7.3.170.0050.01016.38
7.3.160.0090.00616.42
7.3.130.0150.00315.00
7.3.120.0030.00914.82
7.3.110.0130.00714.79
7.3.100.0110.00015.11
7.3.90.0030.01415.02
7.3.80.0030.00914.43
7.3.70.0090.00014.48
7.3.60.0070.00714.95
7.3.50.0050.00514.64
7.3.40.0030.01014.70
7.3.30.0040.01114.88
7.3.20.0040.01116.79
7.3.10.0080.00716.48
7.3.00.0080.00416.56
7.2.330.0140.00716.75
7.2.320.0140.00416.68
7.2.310.0070.01616.46
7.2.300.0140.01016.79
7.2.290.0170.00016.75
7.2.260.0100.00314.82
7.2.250.0070.01114.80
7.2.240.0080.00615.08
7.2.230.0110.00715.00
7.2.220.0060.00914.53
7.2.210.0110.00314.73
7.2.200.0060.00914.84
7.2.190.0110.00714.95
7.2.180.0030.01014.96
7.2.170.0030.00915.07
7.2.160.0040.01115.04
7.2.150.0030.00717.04
7.2.140.0030.00616.73
7.2.130.0060.00716.85
7.2.120.0050.00916.86
7.2.110.0070.00516.74
7.2.100.0090.00616.87
7.2.90.0080.00517.00
7.2.80.0040.01117.03
7.2.70.0040.01016.86
7.2.60.0080.00616.87
7.2.50.0060.00616.99
7.2.40.0070.00616.84
7.2.30.0020.01016.90
7.2.20.0090.00516.96
7.2.10.0050.01316.80
7.2.00.0060.00817.44
7.1.330.0100.00615.54
7.1.320.0070.00715.68
7.1.310.0130.00315.79
7.1.300.0120.00615.75
7.1.290.0030.01015.73
7.1.280.0030.01015.57
7.1.270.0030.01015.83
7.1.260.0030.01015.51
7.1.250.0070.00615.70
7.1.240.0030.00815.65
7.1.230.0020.00815.67
7.1.220.0060.00415.77
7.1.210.0060.00815.66
7.1.200.0070.00515.73
7.1.190.0070.00515.85
7.1.180.0060.00715.82
7.1.170.0050.00815.68
7.1.160.0020.01215.91
7.1.150.0050.00815.65
7.1.140.0030.01215.54
7.1.130.0050.00515.75
7.1.120.0020.01315.63
7.1.110.0020.01315.76
7.1.100.0050.00716.64
7.1.90.0050.00815.60
7.1.80.0050.00815.71
7.1.70.0040.00815.99
7.1.60.0030.01016.21
7.1.50.0060.01016.31
7.1.40.0030.00815.78
7.1.30.0080.00715.64
7.1.20.0050.00715.64
7.1.10.0070.00715.73
7.1.00.0030.03218.02
7.0.330.0030.00715.37
7.0.320.0100.00315.41
7.0.310.0040.01015.36
7.0.300.0090.00315.33
7.0.290.0030.00815.26
7.0.280.0050.00715.25
7.0.270.0060.00715.35
7.0.260.0050.00815.42
7.0.250.0000.01115.24
7.0.240.0040.00815.45
7.0.230.0030.00815.35
7.0.220.0060.00415.51
7.0.210.0020.01115.28
7.0.200.0030.00815.75
7.0.190.0040.00915.30
7.0.180.0060.00615.34
7.0.170.0020.01015.35
7.0.160.0050.00815.26
7.0.150.0070.00315.36
7.0.140.0050.02917.47
7.0.130.0070.00515.37
7.0.120.0050.00715.40
7.0.110.0030.00915.22
7.0.100.0060.00315.44
7.0.90.0060.00615.40
7.0.80.0030.01015.40
7.0.70.0080.00515.39
7.0.60.0030.01716.92
7.0.50.0040.02016.19
7.0.40.0040.03315.58
7.0.30.0160.03015.82
7.0.20.0070.01915.49
7.0.10.0090.01315.77
7.0.00.0010.02015.70
5.6.400.0030.01014.03
5.6.390.0000.01214.31
5.6.380.0050.00814.56
5.6.370.0050.00814.28
5.6.360.0050.01014.48
5.6.350.0040.00514.38
5.6.340.0110.00314.31
5.6.330.0020.01014.36
5.6.320.0050.00814.08
5.6.310.0060.00814.36
5.6.300.0110.00314.07
5.6.290.0030.01114.17
5.6.280.0010.03016.45
5.6.270.0050.00813.96
5.6.260.0070.00514.20
5.6.250.0020.00914.25
5.6.240.0050.00714.30
5.6.230.0040.00914.44
5.6.220.0060.00314.26
5.6.210.0080.01416.35
5.6.200.0080.02815.56
5.6.190.0030.03716.20
5.6.180.0050.02316.37
5.6.170.0130.02516.37
5.6.160.0090.03016.39
5.6.150.0070.01815.51
5.6.140.0080.01615.62
5.6.130.0040.02415.66
5.6.120.0050.03116.53
5.6.110.0060.02016.70
5.6.100.0110.03116.51
5.6.90.0090.02916.46
5.6.80.0070.02316.22
5.6.70.0030.01014.31
5.6.60.0090.00514.36
5.6.50.0090.00414.01
5.6.40.0080.00314.33
5.6.30.0070.00714.09
5.6.20.0090.00514.41
5.6.10.0070.00814.17
5.6.00.0060.00314.12
5.5.380.0050.00812.59
5.5.370.0050.00612.60
5.5.360.0010.00912.60
5.5.350.0070.03015.19
5.5.340.0080.02214.32
5.5.330.0040.02315.02
5.5.320.0150.03015.19
5.5.310.0150.02815.07
5.5.300.0040.01814.39
5.5.290.0040.01814.36
5.5.280.0080.01815.26
5.5.270.0050.01715.34
5.5.260.0040.02815.38
5.5.250.0090.01415.15
5.5.240.0050.02815.16
5.5.230.0070.00312.62
5.5.220.0020.00812.40
5.5.210.0020.00812.40
5.5.200.0030.00712.60
5.5.190.0020.01012.35
5.5.180.0040.00812.49
5.5.170.0060.00712.52
5.5.160.0050.00512.62
5.5.150.0080.00512.65
5.5.140.0050.00712.72
5.5.130.0030.00912.54
5.5.120.0050.00912.52
5.5.110.0020.00912.65
5.5.100.0070.00312.50
5.5.90.0000.01212.63
5.5.80.0050.00912.52
5.5.70.0070.00512.50
5.5.60.0030.00812.37
5.5.50.0050.00712.70
5.5.40.0040.00512.50
5.5.30.0060.00612.47
5.5.20.0090.00312.42
5.5.10.0050.00712.45
5.5.00.0020.01012.59
5.4.450.0140.01813.74
5.4.440.0370.02313.80
5.4.430.0160.02213.92
5.4.420.0220.02413.97
5.4.410.0320.02413.87
5.4.400.0240.02213.65
5.4.390.0390.01713.75
5.4.380.0150.02813.59
5.4.370.0120.02313.65
5.4.360.0110.02713.60
5.4.350.0150.02013.67
5.4.340.0140.02813.57
5.4.330.0020.00611.00
5.4.320.0030.02011.52
5.4.310.0050.01611.45
5.4.300.0020.02011.43
5.4.290.0050.01811.58
5.4.280.0070.01811.45
5.4.270.0070.02011.51
5.4.260.0080.02111.40
5.4.250.0070.02211.38
5.4.240.0060.01811.47
5.4.230.0040.02311.35
5.4.220.0050.01711.42
5.4.210.0050.01711.50
5.4.200.0050.01411.43
5.4.190.0050.01811.38
5.4.180.0050.01911.50
5.4.170.0060.01511.48
5.4.160.0070.01711.47
5.4.150.0090.01811.40
5.4.140.0050.02011.33
5.4.130.0060.01511.35
5.4.120.0050.01711.33
5.4.110.0070.01911.29
5.4.100.0090.01611.26
5.4.90.0060.02111.22
5.4.80.0050.02211.26
5.4.70.0070.02011.29
5.4.60.0080.02211.35
5.4.50.0030.02311.36
5.4.40.0070.01911.29
5.4.30.0050.01611.28
5.4.20.0060.01511.37
5.4.10.0020.01711.39
5.4.00.0050.01611.18
5.3.290.0060.01711.52
5.3.280.0050.02111.46
5.3.270.0050.02111.47
5.3.260.0060.02211.47
5.3.250.0070.02011.47
5.3.240.0050.02311.40
5.3.230.0080.01811.43
5.3.220.0040.01411.35
5.3.210.0030.01711.40
5.3.200.0070.01711.38
5.3.190.0050.01811.42
5.3.180.0080.01911.45
5.3.170.0060.02211.43
5.3.160.0080.01611.46
5.3.150.0030.01911.47
5.3.140.0040.02211.43
5.3.130.0040.02311.36
5.3.120.0070.02111.40
5.3.110.0050.01611.33
5.3.100.0040.01711.19
5.3.90.0070.01511.20
5.3.80.0050.01611.25
5.3.70.0070.01711.25
5.3.60.0050.02311.19
5.3.50.0060.01911.18
5.3.40.0050.02211.18
5.3.30.0070.02711.18
5.3.20.0040.02511.09
5.3.10.0080.01910.96
5.3.00.0050.02111.00
5.2.170.0020.0229.55
5.2.160.0040.0199.55
5.2.150.0040.0249.55
5.2.140.0030.0209.55
5.2.130.0060.0219.53
5.2.120.0050.0189.53
5.2.110.0060.0169.54
5.2.100.0050.0169.54
5.2.90.0070.0149.54
5.2.80.0090.0209.54
5.2.70.0080.0259.53
5.2.60.0040.0249.51
5.2.50.0070.0209.50
5.2.40.0070.0199.48
5.2.30.0060.0269.47
5.2.20.0090.0189.46
5.2.10.0040.0229.43
5.2.00.0020.0279.36
5.1.60.0050.0189.00
5.1.50.0040.0199.00
5.1.40.0030.0238.99
5.1.30.0060.0259.16
5.1.20.0040.0219.18
5.1.10.0090.0149.04
5.1.00.0040.0209.04
5.0.50.0050.0128.28
5.0.40.0040.0158.21
5.0.30.0020.0198.11
5.0.20.0050.0108.10
5.0.10.0050.0118.09
5.0.00.0020.0198.08
4.4.90.0040.0087.37
4.4.80.0020.0097.35
4.4.70.0040.0097.36
4.4.60.0040.0087.35
4.4.50.0030.0117.36
4.4.40.0040.0167.33
4.4.30.0020.0127.36
4.4.20.0010.0127.40
4.4.10.0020.0147.40
4.4.00.0040.0177.36
4.3.110.0050.0167.31
4.3.100.0020.0117.31
4.3.90.0030.0127.29
4.3.80.0040.0187.27
4.3.70.0060.0147.29
4.3.60.0050.0117.29
4.3.50.0080.0177.29
4.3.40.0050.0167.25
4.3.30.0020.0136.61
4.3.20.0010.0136.61
4.3.10.0060.0246.59
4.3.00.0100.00811.71

preferences:
42.54 ms | 401 KiB | 5 Q