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) { if ($a2 === 'two2') { break 1; } echo $a2."\n"; } echo "no continue\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.0130.00618.28
8.3.50.0000.01618.18
8.3.40.0110.00718.77
8.3.30.0140.00018.63
8.3.20.0000.00819.22
8.3.10.0000.00823.50
8.3.00.0070.00020.61
8.2.180.0140.01116.63
8.2.170.0120.00322.96
8.2.160.0090.00920.35
8.2.150.0050.00324.18
8.2.140.0040.01124.66
8.2.130.0000.00818.09
8.2.120.0080.00026.35
8.2.110.0090.00019.37
8.2.100.0110.00018.03
8.2.90.0040.00417.63
8.2.80.0000.00818.88
8.2.70.0030.00617.93
8.2.60.0000.00718.09
8.2.50.0080.00018.10
8.2.40.0040.00419.34
8.2.30.0030.00319.31
8.2.20.0030.00618.12
8.2.10.0030.00718.07
8.2.00.0030.00617.53
8.1.280.0130.00325.92
8.1.270.0040.00420.65
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0070.00320.45
8.1.230.0070.00318.95
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00617.10
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0060.00318.24
8.1.160.0000.00718.88
8.1.150.0070.00018.96
8.1.140.0000.00722.14
8.1.130.0030.00320.14
8.1.120.0000.00717.37
8.1.110.0030.00517.50
8.1.100.0030.00517.49
8.1.90.0000.00817.43
8.1.80.0060.00317.54
8.1.70.0000.00717.47
8.1.60.0000.00717.60
8.1.50.0050.00317.54
8.1.40.0040.00417.48
8.1.30.0000.00717.63
8.1.20.0030.00517.66
8.1.10.0000.00717.38
8.1.00.0060.00317.51
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0030.00518.43
8.0.270.0040.00417.27
8.0.260.0060.00018.36
8.0.250.0070.00016.85
8.0.240.0060.00016.84
8.0.230.0030.00316.89
8.0.220.0000.00716.80
8.0.210.0030.00316.84
8.0.200.0030.00317.00
8.0.190.0000.00816.97
8.0.180.0040.00416.93
8.0.170.0030.00616.85
8.0.160.0030.00316.92
8.0.150.0000.00716.74
8.0.140.0000.00716.85
8.0.130.0030.00313.34
8.0.120.0000.00716.79
8.0.110.0070.00016.94
8.0.100.0040.00416.70
8.0.90.0030.00316.96
8.0.80.0080.00816.87
8.0.70.0070.00016.84
8.0.60.0030.00616.76
8.0.50.0040.00416.92
8.0.30.0100.01316.97
8.0.20.0130.01017.40
8.0.10.0070.00017.07
8.0.00.0050.01416.72
7.4.330.0000.00615.55
7.4.320.0040.00416.41
7.4.300.0040.00416.65
7.4.290.0000.00716.64
7.4.280.0040.00416.51
7.4.270.0040.00416.61
7.4.260.0060.00316.60
7.4.250.0040.00416.38
7.4.240.0040.00416.41
7.4.230.0030.00316.48
7.4.220.0050.00216.57
7.4.210.0050.00916.54
7.4.200.0030.00316.57
7.4.160.0110.00616.42
7.4.140.0110.00917.86
7.4.130.0130.00316.49
7.4.120.0090.01216.55
7.4.110.0070.01516.36
7.4.100.0030.01316.50
7.4.90.0070.01016.63
7.4.80.0160.00619.39
7.4.70.0070.01016.46
7.4.60.0060.00916.59
7.4.50.0070.00716.41
7.4.40.0150.00316.36
7.4.10.0070.01314.99
7.4.00.0080.00914.80
7.3.330.0050.00013.18
7.3.320.0030.00313.12
7.3.310.0040.00416.39
7.3.300.0040.00416.35
7.3.290.0070.00016.29
7.3.280.0090.00916.29
7.3.260.0180.00316.38
7.3.240.0070.01016.48
7.3.230.0030.01216.71
7.3.210.0100.00616.23
7.3.200.0130.00316.59
7.3.190.0080.00816.49
7.3.180.0070.01416.33
7.3.170.0090.00916.54
7.3.160.0140.00316.57
7.3.130.0090.00914.52
7.3.120.0070.00714.91
7.3.110.0070.01014.90
7.3.100.0070.01014.91
7.3.90.0040.01214.88
7.3.80.0060.01014.88
7.3.70.0000.01314.85
7.3.60.0060.00314.95
7.3.50.0040.00414.77
7.3.40.0000.01414.82
7.3.30.0040.00414.77
7.3.20.0070.00316.64
7.3.10.0050.00716.79
7.3.00.0060.00616.70
7.2.330.0140.00316.30
7.2.320.0030.01216.37
7.2.310.0080.01616.58
7.2.300.0150.00016.63
7.2.290.0060.01416.78
7.2.260.0100.00714.89
7.2.250.0120.00614.88
7.2.240.0070.00715.24
7.2.230.0030.01215.00
7.2.220.0070.01114.68
7.2.210.0060.00315.00
7.2.200.0130.00414.96
7.2.190.0040.01114.98
7.2.180.0060.00914.95
7.2.170.0070.00714.77
7.2.160.0040.01114.99
7.2.150.0000.01216.54
7.2.140.0060.00616.52
7.2.130.0050.00916.66
7.2.120.0070.00716.73
7.2.110.0150.00716.13
7.2.100.0120.00716.13
7.2.90.0130.00916.17
7.2.80.0120.00816.26
7.2.70.0120.00716.10
7.2.60.0120.00916.26
7.2.50.0100.01016.22
7.2.40.0090.01016.27
7.2.30.0140.00516.36
7.2.20.0100.00916.36
7.2.10.0120.00816.33
7.2.00.0150.00616.11
7.1.330.0080.00815.65
7.1.320.0070.00715.65
7.1.310.0070.00715.89
7.1.300.0030.00715.66
7.1.290.0080.00315.59
7.1.280.0070.00415.69
7.1.270.0060.00615.49
7.1.260.0030.01015.59
7.1.250.0040.00915.80
7.1.240.0110.00715.95
7.1.230.0190.00514.86
7.1.220.0210.00514.73
7.1.210.0160.00714.77
7.1.200.0140.00614.93
7.1.190.0110.00814.73
7.1.180.0500.00314.94
7.1.170.0180.00314.99
7.1.160.0190.00214.81
7.1.150.0120.01014.80
7.1.140.0110.01214.73
7.1.130.0120.00714.80
7.1.120.0110.00714.66
7.1.110.0150.00414.62
7.1.100.0170.00614.90
7.1.90.0130.00914.74
7.1.80.0160.00314.66
7.1.70.0180.00514.90
7.1.60.0270.01223.75
7.1.50.0300.01023.74
7.1.40.0260.01523.79
7.1.30.0200.01123.56
7.1.20.0230.01023.76
7.1.10.0160.00514.61
7.1.00.0130.00614.62
7.0.330.0030.00915.21
7.0.320.0030.01315.22
7.0.310.0030.01015.19
7.0.300.0070.00015.20
7.0.290.0040.00715.30
7.0.280.0030.00615.30
7.0.270.0000.01315.35
7.0.260.0030.00915.23
7.0.250.0090.00615.16
7.0.240.0030.01115.52
7.0.230.0030.00615.52
7.0.220.0060.00615.38
7.0.210.0000.00815.05
7.0.200.0040.00715.41
7.0.190.0070.00715.05
7.0.180.0130.00015.20
7.0.170.0000.01115.36
7.0.160.0040.00815.46
7.0.150.0090.00315.05
7.0.140.0000.01415.05
7.0.130.0060.00914.97
7.0.120.0000.01215.45
7.0.110.0040.00715.42
7.0.100.0050.00515.37
7.0.90.0030.00715.28
7.0.80.0040.00815.46
7.0.70.0030.00715.26
7.0.60.0060.00915.34
7.0.50.0090.00615.56
7.0.40.0100.00313.59
7.0.30.0040.01113.48
7.0.20.0030.00613.27
7.0.10.0000.00913.35
7.0.00.0030.00613.15
5.6.400.0030.00614.29
5.6.390.0100.00614.16
5.6.380.0050.00914.46
5.6.370.0060.01014.23
5.6.360.0070.00714.18
5.6.350.0070.00314.26
5.6.340.0090.00613.77
5.6.330.0070.00714.14
5.6.320.0000.01514.23
5.6.310.0070.01114.47
5.6.300.0090.00614.41
5.6.290.0100.00714.35
5.6.280.0030.00714.46
5.6.270.0040.00714.33
5.6.260.0000.01214.17
5.6.250.0040.00714.34
5.6.240.0030.01014.02
5.6.230.0000.01214.19
5.6.220.0030.01014.08
5.6.210.0030.01314.15
5.6.200.0120.00314.13
5.6.190.0060.00914.52
5.6.180.0070.00714.00
5.6.170.0120.00314.11
5.6.160.0060.00614.05
5.6.150.0100.00314.30
5.6.140.0090.00614.04
5.6.130.0100.00314.21
5.6.120.0000.00914.29
5.6.110.0040.01114.50
5.6.100.0000.01014.03
5.6.90.0030.01014.33
5.6.80.0030.00614.01
5.6.70.0090.00613.91
5.6.60.0040.00414.05
5.6.50.0000.01614.36
5.6.40.0060.00314.09
5.6.30.0030.01014.13
5.6.20.0040.00414.29
5.6.10.0030.01014.04
5.6.00.0060.00614.30

preferences:
47.88 ms | 401 KiB | 5 Q