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 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.0110.00418.43
8.3.50.0040.01118.01
8.3.40.0030.01318.61
8.3.30.0110.00418.34
8.3.20.0040.00419.34
8.3.10.0040.00423.72
8.3.00.0070.00020.69
8.2.180.0040.01116.63
8.2.170.0070.00722.96
8.2.160.0140.00420.53
8.2.150.0080.00024.18
8.2.140.0040.01124.66
8.2.130.0080.00017.91
8.2.120.0000.00726.35
8.2.110.0060.00319.15
8.2.100.0070.00418.09
8.2.90.0080.00017.63
8.2.80.0040.00419.07
8.2.70.0040.00417.78
8.2.60.0040.00418.09
8.2.50.0040.00418.10
8.2.40.0000.00719.34
8.2.30.0040.00419.25
8.2.20.0040.00418.06
8.2.10.0000.01017.93
8.2.00.0060.00317.74
8.1.280.0040.01125.92
8.1.270.0070.00020.64
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0060.00320.42
8.1.230.0030.00918.87
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0050.00517.35
8.1.190.0060.00317.10
8.1.180.0030.00518.10
8.1.170.0000.00818.48
8.1.160.0050.00318.88
8.1.150.0040.00418.94
8.1.140.0000.00721.99
8.1.130.0030.00320.11
8.1.120.0030.00317.50
8.1.110.0040.00417.36
8.1.100.0060.00317.48
8.1.90.0060.00317.50
8.1.80.0030.00617.38
8.1.70.0040.00417.45
8.1.60.0000.00717.58
8.1.50.0000.00817.55
8.1.40.0080.00017.46
8.1.30.0000.00817.66
8.1.20.0050.00317.66
8.1.10.0060.00317.48
8.1.00.0070.00017.46
8.0.300.0060.00318.77
8.0.290.0080.00016.75
8.0.280.0040.00418.33
8.0.270.0030.00317.17
8.0.260.0050.00318.44
8.0.250.0070.00016.92
8.0.240.0030.00316.95
8.0.230.0030.00316.85
8.0.220.0000.00716.88
8.0.210.0000.00716.91
8.0.200.0000.00716.84
8.0.190.0050.00316.83
8.0.180.0040.00416.79
8.0.170.0090.00016.91
8.0.160.0030.00416.87
8.0.150.0050.00216.79
8.0.140.0050.00216.79
8.0.130.0060.00013.38
8.0.120.0040.00416.86
8.0.110.0070.00016.84
8.0.100.0000.00816.70
8.0.90.0000.00817.00
8.0.80.0090.00716.85
8.0.70.0000.00716.71
8.0.60.0040.00416.93
8.0.50.0000.00716.75
8.0.30.0090.01217.00
8.0.20.0070.01217.40
8.0.10.0000.00716.81
8.0.00.0100.00816.74
7.4.330.0000.00615.55
7.4.320.0000.00616.66
7.4.300.0040.00416.58
7.4.290.0000.00716.50
7.4.280.0030.00516.59
7.4.270.0000.00716.51
7.4.260.0040.00716.51
7.4.250.0040.00416.59
7.4.240.0040.00416.46
7.4.230.0030.00316.44
7.4.220.0000.00716.45
7.4.210.0080.01116.65
7.4.200.0030.00316.67
7.4.160.0100.00716.54
7.4.140.0140.00717.86
7.4.130.0080.00816.29
7.4.120.0110.00816.51
7.4.110.0070.01016.52
7.4.100.0070.01116.47
7.4.90.0120.00616.37
7.4.80.0160.00719.39
7.4.70.0100.00716.38
7.4.60.0060.00916.57
7.4.50.0150.00316.44
7.4.40.0070.01016.52
7.4.00.0040.01115.02
7.3.330.0030.00313.23
7.3.320.0000.00613.30
7.3.310.0060.00316.42
7.3.300.0030.00316.31
7.3.290.0050.00216.27
7.3.280.0090.00616.37
7.3.260.0110.00916.35
7.3.240.0080.00916.34
7.3.230.0070.01016.53
7.3.210.0140.00316.29
7.3.200.0120.00916.27
7.3.190.0090.00616.42
7.3.180.0110.00716.66
7.3.170.0030.01616.66
7.3.160.0160.00016.50
7.2.330.0120.00616.55
7.2.320.0030.01316.77
7.2.310.0120.00316.58
7.2.300.0060.01016.77
7.2.290.0110.00616.60
7.2.110.0210.00014.75
7.2.100.0210.00714.68
7.2.90.0250.00414.53
7.2.80.0250.00714.50
7.2.70.0240.00315.14
7.2.60.0220.00815.25
7.2.50.0260.00715.18
7.2.40.0190.01214.94
7.2.30.0230.00715.07
7.2.20.1150.00614.93
7.2.10.0150.01115.02
7.2.00.0280.00714.79
7.1.230.0130.01314.00
7.1.220.0140.00713.91
7.1.210.0170.01313.95
7.1.200.0190.00713.66
7.1.190.0170.00714.00
7.1.180.0190.01114.19
7.1.170.0240.00713.88
7.1.160.0180.00713.88
7.1.150.0310.00313.78
7.1.140.0320.00413.97
7.1.130.0270.01014.10
7.1.120.0210.00713.54
7.1.110.0170.00713.84
7.1.100.0170.01014.00
7.1.90.0160.00713.62
7.1.80.0210.00313.91
7.1.70.0200.00713.98
7.1.60.0360.01331.52
7.1.50.0450.01531.66
7.1.40.0460.01031.33
7.1.30.0480.00431.55
7.1.20.0320.01031.47
7.1.10.0130.01013.31
7.1.00.0200.00713.64
5.6.380.0040.00714.53

preferences:
56.49 ms | 401 KiB | 5 Q