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"; } }

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.0090.00618.30
8.3.50.0110.00418.15
8.3.40.0120.00318.67
8.3.30.0150.00018.52
8.3.20.0040.00419.20
8.3.10.0070.00023.64
8.3.00.0050.00220.71
8.2.180.0150.00016.32
8.2.170.0140.00022.96
8.2.160.0140.00420.57
8.2.150.0040.00424.18
8.2.140.0030.01024.66
8.2.130.0040.00418.21
8.2.120.0040.00426.35
8.2.110.0030.00719.15
8.2.100.0090.00318.22
8.2.90.0090.00017.75
8.2.80.0000.00818.84
8.2.70.0000.00817.92
8.2.60.0050.00218.22
8.2.50.0030.00618.10
8.2.40.0000.00819.24
8.2.30.0040.00419.18
8.2.20.0040.00418.08
8.2.10.0040.00418.16
8.2.00.0060.00317.71
8.1.280.0090.00625.92
8.1.270.0080.00020.71
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0030.00620.35
8.1.230.0030.00719.01
8.1.220.0070.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0000.00817.23
8.1.180.0030.00518.10
8.1.170.0000.00818.66
8.1.160.0080.00018.79
8.1.150.0000.00718.83
8.1.140.0040.00422.14
8.1.130.0000.00720.13
8.1.120.0030.00317.48
8.1.110.0080.00017.34
8.1.100.0040.00417.41
8.1.90.0040.00417.49
8.1.80.0030.00617.47
8.1.70.0000.00717.36
8.1.60.0040.00417.61
8.1.50.0000.00817.48
8.1.40.0040.00417.57
8.1.30.0030.00517.58
8.1.20.0030.00617.67
8.1.10.0000.00717.38
8.1.00.0000.00817.45
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0030.00318.40
8.0.270.0030.00317.17
8.0.260.0030.00318.45
8.0.250.0030.00316.96
8.0.240.0070.00016.96
8.0.230.0070.00016.94
8.0.220.0070.00016.81
8.0.210.0070.00016.87
8.0.200.0030.00317.01
8.0.190.0000.00816.82
8.0.180.0030.00616.94
8.0.170.0030.00616.79
8.0.160.0070.00016.89
8.0.150.0090.00616.79
8.0.140.0030.00316.88
8.0.130.0030.00313.28
8.0.120.0070.00016.82
8.0.110.0070.00016.75
8.0.100.0070.00016.71
8.0.90.0000.00716.86
8.0.80.0060.01016.83
8.0.70.0040.00416.70
8.0.60.0000.00816.75
8.0.50.0040.00416.70
8.0.30.0060.01317.28
8.0.20.0100.00917.40
8.0.10.0080.00016.94
8.0.00.0120.00816.80
7.4.330.0050.00015.55
7.4.320.0000.00616.61
7.4.300.0070.00316.59
7.4.290.0060.00016.64
7.4.280.0080.00016.49
7.4.270.0000.00716.63
7.4.260.0040.00416.61
7.4.250.0040.00416.59
7.4.240.0020.00516.60
7.4.230.0000.00716.34
7.4.220.0000.00716.39
7.4.210.0070.01116.62
7.4.200.0030.00316.39
7.4.160.0120.00416.51
7.4.140.0140.00817.86
7.4.130.0150.00816.46
7.4.120.0070.01016.49
7.4.110.0040.01416.48
7.4.100.0060.01116.47
7.4.90.0070.01016.41
7.4.80.0220.00419.39
7.4.70.0120.00516.77
7.4.60.0180.00016.41
7.4.50.0040.01116.41
7.4.40.0090.00916.41
7.4.00.0040.01114.86
7.3.330.0030.00313.26
7.3.320.0000.00613.22
7.3.310.0040.00416.32
7.3.300.0030.00316.32
7.3.290.0000.00616.34
7.3.280.0130.00616.25
7.3.260.0080.01116.44
7.3.240.0080.00916.53
7.3.230.0120.00616.56
7.3.210.0100.00716.59
7.3.200.0080.00816.70
7.3.190.0100.01316.45
7.3.180.0070.01416.22
7.3.170.0080.00816.43
7.3.160.0030.01416.43
7.3.10.0130.00316.35
7.3.00.0090.00616.66
7.2.330.0170.00716.81
7.2.320.0060.01316.64
7.2.310.0140.00316.60
7.2.300.0030.01316.56
7.2.290.0060.01016.41
7.2.130.0060.01016.72
7.2.120.0140.00016.78
7.2.110.0160.00515.71
7.2.100.0150.00815.71
7.2.90.0150.01015.88
7.2.80.0160.00815.71
7.2.70.0170.00515.91
7.2.60.0110.00716.00
7.2.50.0170.00515.94
7.2.40.0170.00615.81
7.2.30.0150.00815.96
7.2.20.0130.00716.07
7.2.10.0090.01116.02
7.2.00.0190.00515.79
7.1.250.0000.01415.74
7.1.230.0310.00613.77
7.1.220.0220.01514.09
7.1.210.0200.01013.94
7.1.200.0160.01613.96
7.1.190.0210.01013.98
7.1.180.0380.00613.80
7.1.170.0160.01013.92
7.1.160.0180.00913.95
7.1.150.0190.00613.87
7.1.140.0190.00613.86
7.1.130.0250.00014.06
7.1.120.0260.01013.71
7.1.110.0290.01314.02
7.1.100.0320.00613.67
7.1.90.0260.00313.75
7.1.80.0250.00314.02
7.1.70.0230.00313.73
7.1.60.0600.00331.66
7.1.50.1310.01031.92
7.1.40.0440.01431.71
7.1.30.0590.00631.44
7.1.20.0370.01031.47
7.1.10.0230.00713.62
7.1.00.0240.00713.63
5.6.380.0040.01014.60

preferences:
56.27 ms | 401 KiB | 5 Q