3v4l.org

run code in 300+ PHP versions simultaneously
<?php $model = array("id","car1","car2","car3"); $cars=array("Volvo","BMW","Toyota"); $arrlength=count($model); for($x=1;$x<$arrlength;$x++) { echo $cars[$x]; echo "\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.0060.00918.28
8.3.50.0110.00621.95
8.3.40.0090.00618.80
8.3.30.0140.00018.95
8.3.20.0040.00420.39
8.3.10.0060.00322.05
8.3.00.0040.00422.45
8.2.180.0040.01116.47
8.2.170.0110.00622.96
8.2.160.0040.01121.00
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00317.63
8.2.110.0060.00322.08
8.2.100.0040.00818.03
8.2.90.0040.00419.37
8.2.80.0040.00417.97
8.2.70.0000.01117.75
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0050.00218.34
8.2.30.0040.00418.11
8.2.20.0040.00417.84
8.2.10.0050.00319.59
8.2.00.0050.00217.67
8.1.280.0070.01325.92
8.1.270.0040.00422.17
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00423.79
8.1.230.0060.00619.04
8.1.220.0000.00917.74
8.1.210.0000.00918.77
8.1.200.0000.01016.97
8.1.190.0000.00817.53
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0040.00421.96
8.1.150.0000.00718.56
8.1.140.0050.00217.41
8.1.130.0000.00717.70
8.1.120.0000.00717.51
8.1.110.0040.00417.43
8.1.100.0000.00717.45
8.1.90.0040.00417.38
8.1.80.0030.00317.30
8.1.70.0030.00317.37
8.1.60.0050.00417.46
8.1.50.0030.00517.55
8.1.40.0060.00317.41
8.1.30.0040.00417.59
8.1.20.0030.00617.54
8.1.10.0030.00517.58
8.1.00.0000.00817.39
8.0.300.0030.00318.77
8.0.290.0050.00217.05
8.0.280.0040.00418.34
8.0.270.0000.00717.34
8.0.260.0030.00316.80
8.0.250.0030.00317.05
8.0.240.0050.00217.00
8.0.230.0070.00016.83
8.0.220.0080.00016.79
8.0.210.0040.00416.94
8.0.200.0040.00416.95
8.0.190.0040.00416.84
8.0.180.0020.00516.92
8.0.170.0000.00716.90
8.0.160.0040.00416.95
8.0.150.0000.00716.89
8.0.140.0030.00316.94
8.0.130.0000.00513.44
8.0.120.0040.00416.93
8.0.110.0070.00016.93
8.0.100.0070.00016.81
8.0.90.0000.00716.96
8.0.80.0090.00616.96
8.0.70.0000.00716.98
8.0.60.0000.00816.82
8.0.50.0030.00516.76
8.0.30.0130.00817.13
8.0.20.0120.00717.40
8.0.10.0040.00417.04
8.0.00.0120.00516.81
7.4.330.0020.00215.12
7.4.320.0070.00016.46
7.4.300.0030.00316.50
7.4.290.0030.00316.50
7.4.280.0070.00016.43
7.4.270.0070.00016.47
7.4.260.0030.00616.59
7.4.250.0040.00416.61
7.4.240.0040.00416.48
7.4.230.0030.00316.55
7.4.220.0130.00616.53
7.4.210.0050.01016.62
7.4.200.0030.00316.38
7.4.190.0000.00716.58
7.4.160.0070.00716.58
7.4.150.0060.01317.40
7.4.140.0120.00817.86
7.4.130.0090.00816.47
7.4.120.0140.00416.43
7.4.110.0000.01716.60
7.4.100.0060.01216.79
7.4.90.0120.00416.56
7.4.80.0090.01019.39
7.4.70.0120.00316.46
7.4.60.0030.01316.57
7.4.50.0050.00516.26
7.4.40.0070.00722.77
7.4.30.0140.01116.44
7.4.00.0060.00915.13
7.3.330.0020.00213.19
7.3.320.0000.00513.15
7.3.310.0070.00016.33
7.3.300.0030.00316.23
7.3.290.0060.01216.34
7.3.280.0080.01216.32
7.3.270.0060.01117.40
7.3.260.0120.00616.48
7.3.250.0110.00916.45
7.3.240.0110.00916.41
7.3.230.0130.00316.53
7.3.210.0100.00716.43
7.3.200.0120.00919.39
7.3.190.0090.01216.46
7.3.180.0060.00916.53
7.3.170.0070.01016.44
7.3.160.0120.00916.51
7.3.120.0030.01314.93
7.2.330.0100.00616.84
7.2.320.0060.01216.60
7.2.310.0120.00616.83
7.2.300.0100.00616.49
7.2.290.0160.00016.73
7.2.00.0030.01319.22
7.1.100.0040.00718.32
7.1.70.0000.00717.00
7.1.60.0110.00519.82
7.1.50.0060.00617.02
7.1.00.0130.06722.38
7.0.200.0000.00816.78
7.0.140.0070.08722.05
7.0.60.0100.08019.78
7.0.50.0100.06317.88
7.0.40.0100.08720.40
7.0.30.0270.06320.18
7.0.20.0300.05020.05
7.0.10.0230.06020.22
7.0.00.0030.08719.99
5.6.280.0030.07320.92
5.6.210.0030.08320.76
5.6.200.0030.04018.15
5.6.190.0030.07720.33
5.6.180.3500.04020.36
5.6.170.0200.04720.50
5.6.160.0070.07020.43
5.6.150.0100.04018.18
5.6.140.0000.05018.12
5.6.130.0130.07318.11
5.6.120.0070.08321.05
5.6.110.0070.08721.09
5.6.100.0130.06321.00
5.6.90.0000.04720.99
5.6.80.0100.07720.40
5.6.70.0130.08020.47
5.5.350.0100.08020.47
5.5.340.0130.04717.91
5.5.330.0070.04720.28
5.5.320.0270.04020.17
5.5.310.0200.08320.29
5.5.300.0070.06717.98
5.5.290.0100.06717.90
5.5.280.0070.06320.68
5.5.270.0100.08320.89
5.5.260.0030.06020.79
5.5.250.0100.06320.79
5.5.240.0030.08020.26
5.4.450.0330.04019.26
5.4.440.0930.04019.46
5.4.430.0670.00019.41
5.4.420.0630.00019.60
5.4.410.0100.05718.95
5.4.400.0170.04718.52
5.4.390.0130.07018.49
5.4.380.0230.06018.77
5.4.370.0230.04718.67
5.4.360.0100.05718.61
5.4.350.0200.05018.61
5.4.340.0270.04318.50
5.4.320.0100.03712.46
5.4.310.0080.04912.45
5.4.300.0060.03712.45
5.4.290.0030.04112.45
5.4.280.0070.03412.35
5.4.270.0030.03912.32
5.4.260.0070.04512.32
5.4.250.0100.04712.32
5.4.240.0070.03512.32
5.4.230.0090.03912.31
5.4.220.0060.03612.31
5.4.210.0070.03812.31
5.4.200.0070.04212.31
5.4.190.0050.04212.31
5.4.180.0060.03712.31
5.4.170.0030.03912.32
5.4.160.0060.03612.31
5.4.150.0030.03912.31
5.4.140.0080.03411.99
5.4.130.0050.03711.98
5.4.120.0060.03911.93
5.4.110.0070.03511.93
5.4.100.0080.04211.93
5.4.90.0060.04311.93
5.4.80.0080.04411.93
5.4.70.0050.04011.93
5.4.60.0060.03511.93
5.4.50.0050.04411.93
5.4.40.0060.03811.91
5.4.30.0070.03411.91
5.4.20.0090.04111.91
5.4.10.0070.03411.91
5.4.00.0050.03711.39
5.3.290.0070.04312.80
5.3.280.0060.03912.71
5.3.270.0060.03812.72
5.3.260.0070.04312.72
5.3.250.0110.03712.72
5.3.240.0090.04212.72
5.3.230.0060.03812.71
5.3.220.0080.04512.68
5.3.210.0090.04912.68
5.3.200.0040.03812.68
5.3.190.0080.03812.68
5.3.180.0080.04612.67
5.3.170.0080.04612.67
5.3.160.0060.03812.67
5.3.150.0090.03512.68
5.3.140.0080.03412.66
5.3.130.0070.04712.66
5.3.120.0020.04612.66
5.3.110.0120.03812.66
5.3.100.0090.04112.12
5.3.90.0060.04012.08
5.3.80.0080.03612.07
5.3.70.0080.04612.07
5.3.60.0030.03912.06
5.3.50.0080.03412.00
5.3.40.0050.03712.00
5.3.30.0040.04311.94
5.3.20.0060.03611.70
5.3.10.0070.03411.66
5.3.00.0070.03411.64
5.2.170.0050.0329.15
5.2.160.0050.0399.15
5.2.150.0050.0339.15
5.2.140.0080.0359.14
5.2.130.0070.0349.11
5.2.120.0050.0349.11
5.2.110.0060.0329.11
5.2.100.0050.0319.11
5.2.90.0050.0299.11
5.2.80.0050.0309.10
5.2.70.0040.0369.10
5.2.60.0070.0279.05
5.2.50.0050.0339.03
5.2.40.0040.0329.00
5.2.30.0040.0368.98
5.2.20.0070.0278.96
5.2.10.0040.0328.89
5.2.00.0080.0298.75
5.1.60.0040.0258.04
5.1.50.0040.0268.04
5.1.40.0030.0258.02
5.1.30.0060.0248.37
5.1.20.0030.0298.40
5.1.10.0050.0268.12
5.1.00.0080.0248.11
5.0.50.0040.0226.59
5.0.40.0020.0206.45
5.0.30.0040.0366.27
5.0.20.0050.0206.24
5.0.10.0060.0256.22
5.0.00.0050.0386.21
4.4.90.0040.0214.78
4.4.80.0050.0144.76
4.4.70.0050.0144.75
4.4.60.0040.0144.75
4.4.50.0010.0164.77
4.4.40.0060.0224.70
4.4.30.0040.0174.76
4.4.20.0060.0124.84
4.4.10.0060.0154.85
4.4.00.0030.0284.76
4.3.110.0030.0164.67
4.3.100.0010.0194.66
4.3.90.0030.0154.63
4.3.80.0030.0274.59
4.3.70.0030.0144.63
4.3.60.0030.0174.63
4.3.50.0060.0164.63
4.3.40.0030.0264.53
4.3.30.0030.0173.28
4.3.20.0010.0203.25
4.3.10.0050.0153.22
4.3.00.0070.02015.59

preferences:
44.08 ms | 400 KiB | 5 Q