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') { continue 2; } echo $a2."\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.0030.01218.43
8.3.50.0140.00018.14
8.3.40.0090.00918.84
8.3.30.0040.01218.68
8.3.20.0070.00019.29
8.3.10.0030.00523.66
8.3.00.0040.00420.55
8.2.180.0120.00916.63
8.2.170.0110.00322.96
8.2.160.0150.00420.24
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0080.00017.96
8.2.120.0040.00426.35
8.2.110.0030.00619.18
8.2.100.0060.00617.97
8.2.90.0000.00817.63
8.2.80.0000.00819.09
8.2.70.0060.00317.93
8.2.60.0030.00618.09
8.2.50.0030.00518.10
8.2.40.0000.00719.30
8.2.30.0040.00419.23
8.2.20.0080.00017.97
8.2.10.0080.00317.93
8.2.00.0000.00817.65
8.1.280.0070.00725.92
8.1.270.0000.00820.60
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00720.34
8.1.230.0110.00019.06
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00817.22
8.1.180.0030.00618.10
8.1.170.0050.00318.52
8.1.160.0050.00218.89
8.1.150.0040.00418.88
8.1.140.0000.00722.25
8.1.130.0040.00420.31
8.1.120.0070.00017.43
8.1.110.0000.00717.47
8.1.100.0000.00817.46
8.1.90.0080.00017.46
8.1.80.0060.00317.40
8.1.70.0030.00317.43
8.1.60.0040.00417.55
8.1.50.0000.00817.45
8.1.40.0030.00617.50
8.1.30.0000.00817.72
8.1.20.0050.00317.68
8.1.10.0030.00617.45
8.1.00.0000.00817.41
8.0.300.0050.00218.77
8.0.290.0000.00816.75
8.0.280.0040.00418.55
8.0.270.0040.00417.25
8.0.260.0030.00318.44
8.0.250.0000.00716.85
8.0.240.0000.00616.96
8.0.230.0030.00316.95
8.0.220.0000.00716.82
8.0.210.0070.00016.84
8.0.200.0030.00316.95
8.0.190.0000.00716.95
8.0.180.0040.00416.82
8.0.170.0000.00816.90
8.0.160.0000.00716.89
8.0.150.0040.00716.86
8.0.140.0070.00016.71
8.0.130.0030.00313.25
8.0.120.0050.00316.92
8.0.110.0040.00416.93
8.0.100.0000.00816.73
8.0.90.0000.00716.86
8.0.80.0050.01116.92
8.0.70.0040.00416.98
8.0.60.0040.00416.79
8.0.50.0000.00816.70
8.0.30.0140.00517.20
8.0.20.0150.00417.40
8.0.10.0000.00817.01
8.0.00.0120.00716.71
7.4.330.0000.00515.55
7.4.320.0000.00616.61
7.4.300.0060.00316.48
7.4.290.0030.00316.44
7.4.280.0050.00316.52
7.4.270.0070.00016.45
7.4.260.0070.00016.52
7.4.250.0000.00816.48
7.4.240.0000.00716.56
7.4.230.0000.00716.39
7.4.220.0050.00316.63
7.4.210.0060.01116.63
7.4.200.0000.00716.69
7.4.160.0100.00516.44
7.4.140.0120.00717.86
7.4.130.0110.00616.38
7.4.120.0110.00616.52
7.4.110.0090.01516.54
7.4.100.0090.00916.44
7.4.90.0130.00316.77
7.4.80.0120.01219.39
7.4.70.0070.01016.46
7.4.60.0100.00616.35
7.4.50.0110.00516.27
7.4.40.0080.00816.30
7.4.00.0030.01015.05
7.3.330.0060.00013.22
7.3.320.0000.00613.21
7.3.310.0040.00416.17
7.3.300.0070.00016.35
7.3.290.0000.00716.39
7.3.280.0060.00916.38
7.3.260.0130.00616.47
7.3.240.0040.01216.53
7.3.230.0100.00716.60
7.3.210.0060.01516.61
7.3.200.0090.00916.34
7.3.190.0140.00816.38
7.3.180.0110.00716.32
7.3.170.0170.00516.56
7.3.160.0120.00316.73
7.3.00.0100.00316.42
7.2.330.0070.01716.41
7.2.320.0070.01016.76
7.2.310.0080.00816.55
7.2.300.0030.01316.64
7.2.290.0160.00016.54
7.2.130.0030.01016.82
7.2.120.0100.00616.59
7.2.110.0100.01015.88
7.2.100.0100.00715.60
7.2.90.0160.00715.95
7.2.80.0140.00815.68
7.2.70.0120.00916.04
7.2.60.0100.00815.86
7.2.50.0130.00716.05
7.2.40.0170.00815.85
7.2.30.0160.00415.97
7.2.20.0090.00915.94
7.2.10.0090.01215.88
7.2.00.0180.00315.78
7.1.250.0110.00715.72
7.1.240.0040.00715.68
7.1.230.0130.00414.76
7.1.220.0140.00514.65
7.1.210.0180.00514.80
7.1.200.0130.00914.54
7.1.190.0110.00814.77
7.1.180.0130.00514.94
7.1.170.0140.00414.89
7.1.160.0110.00514.75
7.1.150.0120.01114.75
7.1.140.0170.00314.76
7.1.130.0110.00714.93
7.1.120.0190.00614.87
7.1.110.0130.00514.90
7.1.100.0080.00914.79
7.1.90.0190.00514.55
7.1.80.0130.00614.69
7.1.70.0090.00714.77
7.1.60.0220.00723.72
7.1.50.0240.00723.79
7.1.40.0190.00823.67
7.1.30.0220.00723.53
7.1.20.0220.00923.71
7.1.10.0160.00314.63
7.1.00.0100.01014.62
7.0.330.0080.00415.18
5.6.380.0070.00414.43

preferences:
59.82 ms | 401 KiB | 5 Q