3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cars=array(array("bmw",20,10),array("benz",30,10),array("gator",20,40),array("ferrari",15,60)); for ($row = 0; $row < 4; $row++) { for ($col = 0; $col < 3; $col++) { echo $cars[$row][$col]; } }

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.0170.00318.43
8.3.50.0140.00721.80
8.3.40.0180.00418.83
8.3.30.0030.01319.04
8.3.20.0040.00420.20
8.3.10.0040.00420.59
8.3.00.0080.00019.38
8.2.180.0150.00616.63
8.2.170.0140.00022.96
8.2.160.0040.01120.46
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0030.00522.29
8.2.110.0090.00021.89
8.2.100.0040.00720.39
8.2.90.0040.00418.95
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.00818.04
8.2.50.0060.00318.07
8.2.40.0080.00018.03
8.2.30.0050.00219.54
8.2.20.0000.00717.66
8.2.10.0090.00018.02
8.2.00.0000.00817.55
8.1.280.0070.00725.92
8.1.270.0080.00022.19
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00023.91
8.1.230.0070.00319.14
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0040.00417.23
8.1.180.0030.00618.10
8.1.170.0050.00318.53
8.1.160.0040.00421.85
8.1.150.0000.00718.74
8.1.140.0000.00817.32
8.1.130.0040.00417.93
8.1.120.0040.00417.42
8.1.110.0030.00417.29
8.1.100.0000.00717.28
8.1.90.0000.00717.40
8.1.80.0070.00017.45
8.1.70.0000.00717.36
8.1.60.0040.00417.52
8.1.50.0040.00417.50
8.1.40.0000.00817.41
8.1.30.0000.00817.39
8.1.20.0040.00417.62
8.1.10.0000.00717.57
8.1.00.0000.00717.35
8.0.300.0070.00018.77
8.0.290.0070.00016.75
8.0.280.0030.00318.34
8.0.270.0040.00417.36
8.0.260.0000.00617.31
8.0.250.0070.00016.84
8.0.240.0000.00716.84
8.0.230.0040.00416.84
8.0.220.0000.00716.80
8.0.210.0040.00416.84
8.0.200.0030.00316.83
8.0.190.0000.00816.84
8.0.180.0070.00016.84
8.0.170.0040.00416.75
8.0.160.0080.00016.67
8.0.150.0040.00416.61
8.0.140.0000.00716.80
8.0.130.0030.00313.18
8.0.120.0040.00416.67
8.0.110.0040.00416.82
8.0.100.0000.00816.78
8.0.90.0040.00416.71
8.0.80.0090.00916.80
8.0.70.0080.00016.67
8.0.60.0020.00516.79
8.0.50.0000.00716.87
8.0.30.0080.01116.98
8.0.20.0120.01417.40
8.0.10.0000.00716.72
8.0.00.0110.00616.72
7.4.330.0000.00515.00
7.4.320.0000.00616.33
7.4.300.0000.00616.53
7.4.290.0070.00016.53
7.4.280.0050.00316.44
7.4.270.0030.00316.54
7.4.260.0030.00616.44
7.4.250.0000.01016.48
7.4.240.0080.00016.52
7.4.230.0090.00016.34
7.4.220.0080.01216.49
7.4.210.0090.00616.58
7.4.200.0030.00316.33
7.4.160.0050.01316.54
7.4.150.0110.00917.40
7.4.140.0150.00517.86
7.4.130.0140.00816.35
7.4.120.0100.00916.40
7.4.110.0050.01116.28
7.4.100.0090.00916.48
7.4.90.0070.01016.40
7.4.80.0070.01419.39
7.4.70.0060.01216.48
7.4.60.0040.01216.27
7.4.50.0000.00816.35
7.4.40.0060.01216.38
7.4.30.0100.00616.23
7.4.00.0030.01314.78
7.3.330.0000.00713.21
7.3.320.0020.00213.31
7.3.310.0040.00416.37
7.3.300.0030.00316.33
7.3.290.0070.00716.37
7.3.280.0070.00916.26
7.3.270.0070.01117.40
7.3.260.0030.01316.30
7.3.250.0050.01216.39
7.3.240.0120.00616.36
7.3.230.0040.01316.48
7.3.210.0060.01116.60
7.3.200.0000.02219.39
7.3.190.0130.00816.64
7.3.180.0120.00416.27
7.3.170.0060.01116.27
7.3.160.0130.00316.25
7.2.330.0090.00916.68
7.2.320.0140.00416.45
7.2.310.0030.01916.82
7.2.300.0130.00716.45
7.2.290.0030.01316.77
7.2.00.0100.01019.14
7.1.100.0000.01117.80
7.1.70.0070.00317.12
7.1.60.0150.00319.12
7.1.50.0070.01416.80
7.1.00.0030.07722.48
7.0.200.0050.00216.52
7.0.140.0070.07021.97
7.0.60.0130.07020.00
7.0.50.0130.06317.91
7.0.40.0070.04020.21
7.0.30.0470.07320.22
7.0.20.0200.05020.19
7.0.10.0130.05320.19
7.0.00.0030.04320.08
5.6.280.0100.06720.93
5.6.210.0030.09320.64
5.6.200.0100.05318.11
5.6.190.0030.04320.43
5.6.180.3800.03720.61
5.6.170.0270.05320.36
5.6.160.0070.05020.54
5.6.150.0070.07318.21
5.6.140.0030.06718.20
5.6.130.0100.05018.13
5.6.120.0070.08320.98
5.6.110.0030.06720.93
5.6.100.0100.07020.88
5.6.90.0030.06021.15
5.6.80.0130.05720.35
5.6.70.4500.03320.37
5.5.350.0070.07020.38
5.5.340.0030.08717.88
5.5.330.0130.04320.37
5.5.320.0300.07320.29
5.5.310.0330.06320.50
5.5.300.0030.04318.00
5.5.290.0030.08317.98
5.5.280.0030.07020.77
5.5.270.0030.05020.86
5.5.260.0100.07720.87
5.5.250.0130.07720.58
5.5.240.0300.06720.13
5.4.450.0170.03719.39
5.4.440.0170.03719.52
5.4.430.0230.03319.41
5.4.420.0130.04019.45
5.4.410.0330.05719.28
5.4.400.0170.03718.82
5.4.390.0170.03719.24
5.4.380.0130.04019.22
5.4.370.0230.03318.79
5.4.360.0130.04319.13
5.4.350.0200.03719.24
5.4.340.0170.04018.93
5.4.320.0200.03719.06
5.4.310.0170.04018.81
5.4.300.0200.03319.07
5.4.290.0130.04019.13
5.4.280.0200.03718.93
5.4.270.0200.03318.78
5.4.260.0130.04319.09
5.4.250.0130.04019.07
5.4.240.0200.03319.15
5.4.230.0130.04019.25
5.4.220.0200.03319.08
5.4.210.0170.03718.78
5.4.200.0270.03018.92
5.4.190.0170.03719.14
5.4.180.0170.03718.80
5.4.170.0230.03318.92
5.4.160.0200.03319.25
5.4.150.0070.05019.06
5.4.140.0200.06016.33
5.4.130.0300.06016.45
5.4.120.0170.03716.44
5.4.110.0170.03716.39
5.4.100.0130.04016.23
5.4.90.0200.03316.39
5.4.80.0170.03716.39
5.4.70.0130.03716.37
5.4.60.0070.04316.31
5.4.50.0200.03016.32
5.4.40.0130.03716.04
5.4.30.0230.02716.36
5.4.20.0170.03716.47
5.4.10.0130.03716.41
5.4.00.0130.03715.73
5.3.290.0170.04714.50
5.3.280.0230.02714.55
5.3.270.0270.02714.70
5.3.260.0230.03014.45
5.3.250.0130.03714.58
5.3.240.0170.03314.58
5.3.230.0130.04714.45
5.3.220.0130.03714.52
5.3.210.0130.03714.43
5.3.200.0200.03014.51
5.3.190.0200.04014.41
5.3.180.0130.03714.44
5.3.170.0170.03314.43
5.3.160.0200.03014.40
5.3.150.0170.03314.61
5.3.140.0170.04714.60
5.3.130.0100.04014.59
5.3.120.0200.03014.40
5.3.110.0130.03714.50
5.3.100.0200.03013.87
5.3.90.0300.03013.96
5.3.80.0130.04713.99
5.3.70.0130.03713.97
5.3.60.0100.04013.93
5.3.50.0170.03313.89
5.3.40.0130.03713.74
5.3.30.0100.03713.86
5.3.20.0170.03013.52
5.3.10.0170.04013.49
5.3.00.0200.03013.51
5.2.170.0100.03011.98
5.2.160.0100.03011.98
5.2.150.0100.03011.98
5.2.140.0200.02011.98
5.2.130.0070.03311.98
5.2.120.0070.03311.98
5.2.110.0130.02711.98
5.2.100.0130.03011.98
5.2.90.0130.02711.98
5.2.80.0130.02711.98
5.2.70.0170.02311.98
5.2.60.0070.03311.98
5.2.50.0130.02711.98
5.2.40.0070.03011.98
5.2.30.0200.02311.98
5.2.20.0130.02311.98
5.2.10.0070.03011.98
5.2.00.0170.02011.98
5.1.60.0070.02711.98
5.1.50.0130.02011.98
5.1.40.0130.02711.98
5.1.30.0170.02011.98
5.1.20.0100.02711.98
5.1.10.0100.03311.98
5.1.00.0130.02011.98
5.0.50.0070.02711.98
5.0.40.0070.02711.98
5.0.30.0070.02711.98
5.0.20.0030.02311.98
5.0.10.0070.02011.98
5.0.00.0100.02711.98
4.4.90.0070.03311.98
4.4.80.0030.01711.98
4.4.70.0030.01711.98
4.4.60.0070.03011.98
4.4.50.0030.01711.98
4.4.40.0100.03311.98
4.4.30.0070.01711.98
4.4.20.0100.01711.98
4.4.10.0030.01711.98
4.4.00.0030.02711.98
4.3.110.0030.01711.98
4.3.100.0070.01311.98
4.3.90.0030.01711.98
4.3.80.0070.04011.98
4.3.70.0070.01311.98
4.3.60.0030.01711.98
4.3.50.0100.01011.98
4.3.40.0000.02711.98
4.3.30.0000.02011.98
4.3.20.0030.01311.98
4.3.10.0070.01711.98
4.3.00.0000.01711.98

preferences:
42.46 ms | 401 KiB | 5 Q