3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = ['one1', 'two1', 'three1']; $arr2 = ['one2', 'two2', 'three2']; foreach ($arr1 as $a1) { echo $a1."\n"; foreach ($arr2 as $a2) { echo $a2."\n"; if ($a2 === 'two2') { continue 2; } } }

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.0120.00316.58
8.3.60.0090.00618.39
8.3.50.0070.00718.04
8.3.40.0140.00418.67
8.3.30.0040.01118.54
8.3.20.0020.00519.16
8.3.10.0050.00323.55
8.3.00.0070.00020.48
8.2.180.0060.00916.50
8.2.170.0110.00322.96
8.2.160.0090.00620.43
8.2.150.0030.00524.18
8.2.140.0100.00324.66
8.2.130.0060.00318.09
8.2.120.0060.00326.35
8.2.110.0060.00319.21
8.2.100.0040.00718.09
8.2.90.0030.00517.73
8.2.80.0050.00319.01
8.2.70.0080.00017.92
8.2.60.0040.00418.22
8.2.50.0040.00418.10
8.2.40.0000.00819.47
8.2.30.0030.00319.24
8.2.20.0070.00017.93
8.2.10.0030.00718.02
8.2.00.0030.00517.63
8.1.280.0070.00725.92
8.1.270.0040.00420.60
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.01120.27
8.1.230.0080.00318.80
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0060.00317.21
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0000.00818.54
8.1.160.0000.00718.89
8.1.150.0040.00418.94
8.1.140.0040.00422.14
8.1.130.0050.00320.25
8.1.120.0040.00417.48
8.1.110.0040.00417.48
8.1.100.0060.00317.47
8.1.90.0030.00517.42
8.1.80.0070.00317.41
8.1.70.0030.00317.39
8.1.60.0070.00017.44
8.1.50.0040.00417.40
8.1.40.0050.00317.53
8.1.30.0060.00317.59
8.1.20.0050.00317.58
8.1.10.0030.00517.45
8.1.00.0000.00717.49
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0000.00718.31
8.0.270.0040.00417.32
8.0.260.0000.00618.36
8.0.250.0000.00716.87
8.0.240.0000.00616.87
8.0.230.0070.00016.82
8.0.220.0080.00016.77
8.0.210.0030.00316.80
8.0.200.0060.00016.96
8.0.190.0030.00516.82
8.0.180.0000.00716.97
8.0.170.0000.00916.84
8.0.160.0040.00416.85
8.0.150.0070.00416.85
8.0.140.0000.00716.88
8.0.130.0070.00013.34
8.0.120.0000.00816.84
8.0.110.0040.00416.89
8.0.100.0000.00816.77
8.0.90.0070.00016.96
8.0.80.0060.00916.88
8.0.70.0000.00716.89
8.0.60.0000.00716.86
8.0.50.0040.00416.73
8.0.30.0120.00316.93
8.0.20.0090.00917.40
8.0.10.0040.00416.81
8.0.00.0160.00216.60
7.4.330.0050.00015.55
7.4.320.0040.00416.55
7.4.300.0030.00316.49
7.4.290.0030.00316.54
7.4.280.0080.00016.50
7.4.270.0030.00316.64
7.4.260.0030.00616.47
7.4.250.0070.00016.54
7.4.240.0000.00816.51
7.4.230.0000.00716.70
7.4.220.0000.00716.48
7.4.210.0050.01116.53
7.4.200.0030.00316.48
7.4.160.0110.00616.46
7.4.140.0110.00917.86
7.4.130.0130.00316.56
7.4.120.0090.00716.51
7.4.110.0200.00416.55
7.4.100.0080.01116.54
7.4.90.0150.00416.53
7.4.80.0030.01419.39
7.4.70.0060.01016.50
7.4.60.0080.00816.44
7.4.50.0090.00916.30
7.4.40.0070.01016.39
7.4.00.0030.01315.01
7.3.330.0030.00313.08
7.3.320.0050.00013.17
7.3.310.0030.00616.42
7.3.300.0000.00716.34
7.3.290.0000.00716.29
7.3.280.0040.01116.36
7.3.260.0090.00816.42
7.3.240.0090.00716.40
7.3.230.0140.00316.36
7.3.210.0120.00616.40
7.3.200.0140.00716.48
7.3.190.0160.00616.29
7.3.180.0150.00616.35
7.3.170.0160.00616.26
7.3.160.0050.01016.57
7.3.120.0040.01114.93
7.3.110.0030.01514.80
7.3.100.0090.00614.78
7.3.90.0060.00914.86
7.3.80.0090.00914.99
7.3.70.0100.00314.93
7.3.60.0130.00314.79
7.3.50.0000.01214.67
7.3.40.0030.01214.77
7.3.30.0000.01414.57
7.3.20.0000.00916.71
7.3.10.0100.00716.72
7.3.00.0060.00916.73
7.2.330.0080.00816.70
7.2.320.0060.01216.64
7.2.310.0120.00316.42
7.2.300.0030.01316.49
7.2.290.0130.00716.68
7.2.240.0000.01115.04
7.2.230.0040.00715.01
7.2.220.0030.00814.97
7.2.210.0060.00614.96
7.2.200.0090.00914.73
7.2.190.0080.00415.00
7.2.180.0030.01514.99
7.2.170.0030.00915.14
7.2.160.0070.00715.09
7.2.150.0070.01016.79
7.2.140.0100.00616.91
7.2.130.0030.00916.92
7.2.120.0130.00316.95
7.2.110.0140.00815.87
7.2.100.0160.01115.71
7.2.90.0190.00615.85
7.2.80.0140.00815.83
7.2.70.0180.00615.86
7.2.60.0130.01015.88
7.2.50.0150.00615.88
7.2.40.0150.01015.95
7.2.30.0140.01016.09
7.2.20.0150.01116.08
7.2.10.0210.00616.10
7.2.00.0120.00915.83
7.1.330.0000.01516.04
7.1.320.0130.00315.77
7.1.310.0030.01015.69
7.1.300.0060.00915.85
7.1.290.0070.00715.60
7.1.280.0060.01015.73
7.1.270.0030.00915.53
7.1.260.0060.00615.77
7.1.250.0030.01215.63
7.1.230.0310.00613.89
7.1.220.0260.00714.18
7.1.210.0190.01113.60
7.1.200.0210.00713.84
7.1.190.0280.00714.05
7.1.180.0240.00714.12
7.1.170.0150.01913.80
7.1.160.0290.01213.82
7.1.150.0260.01314.20
7.1.140.0220.00614.02
7.1.130.0300.00713.67
7.1.120.0300.00813.86
7.1.110.0210.01113.90
7.1.100.0710.00913.78
7.1.90.0250.00713.40
7.1.80.0350.00013.76
7.1.70.0290.00613.67
7.1.60.0480.00731.58
7.1.50.0400.00931.64
7.1.40.0540.00331.58
7.1.30.0360.00631.54
7.1.20.0400.00731.35
7.1.10.0230.00513.46
7.1.00.0160.00913.61
5.6.380.0100.01014.51

preferences:
54.52 ms | 401 KiB | 5 Q