3v4l.org

run code in 300+ PHP versions simultaneously
<?php $model = array("id","car1","car2","car3"); $cars=array("Volvo","BMW","Toyota"); $arrlength=count($cars); for($x=0;$x<$arrlength;$x++) { echo $model[$x] . "=" . $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.0130.00318.32
8.3.50.0080.01121.93
8.3.40.0110.00718.70
8.3.30.0140.00019.12
8.3.20.0040.00420.38
8.3.10.0080.00021.96
8.3.00.0040.00422.41
8.2.180.0110.01116.75
8.2.170.0110.00422.96
8.2.160.0110.00320.86
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00417.63
8.2.110.0000.00922.20
8.2.100.0060.00617.91
8.2.90.0000.00819.23
8.2.80.0040.00417.97
8.2.70.0030.01017.63
8.2.60.0040.00418.16
8.2.50.0030.00618.07
8.2.40.0000.00818.30
8.2.30.0040.00418.05
8.2.20.0080.00017.77
8.2.10.0050.00219.60
8.2.00.0040.00417.79
8.1.280.0140.00725.92
8.1.270.0060.00322.19
8.1.260.0060.00326.35
8.1.250.0030.00628.09
8.1.240.0050.00524.01
8.1.230.0070.00718.93
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0120.00017.23
8.1.190.0030.00617.54
8.1.180.0050.00318.10
8.1.170.0040.00418.46
8.1.160.0000.00721.92
8.1.150.0080.00018.69
8.1.140.0070.00017.30
8.1.130.0000.00717.81
8.1.120.0000.00717.39
8.1.110.0000.00717.46
8.1.100.0000.00817.34
8.1.90.0070.00017.32
8.1.80.0000.00817.43
8.1.70.0070.00017.36
8.1.60.0050.00317.59
8.1.50.0040.00417.51
8.1.40.0070.00017.53
8.1.30.0040.00417.66
8.1.20.0030.00517.57
8.1.10.0000.00817.57
8.1.00.0000.00817.52
8.0.300.0000.00718.77
8.0.290.0000.00817.16
8.0.280.0030.00318.42
8.0.270.0030.00317.18
8.0.260.0030.00316.79
8.0.250.0060.00016.93
8.0.240.0040.00417.00
8.0.230.0000.00716.93
8.0.220.0000.00616.84
8.0.210.0050.00216.79
8.0.200.0030.00317.00
8.0.190.0000.00716.96
8.0.180.0000.00816.90
8.0.170.0050.00316.89
8.0.160.0000.00716.98
8.0.150.0030.00316.77
8.0.140.0070.00016.81
8.0.130.0060.00013.38
8.0.120.0070.00016.81
8.0.110.0000.00716.88
8.0.100.0000.00716.71
8.0.90.0040.00416.91
8.0.80.0040.01116.88
8.0.70.0040.00416.79
8.0.60.0040.00416.77
8.0.50.0000.00716.89
8.0.30.0140.00517.23
8.0.20.0110.01217.40
8.0.10.0060.00316.95
8.0.00.0090.00816.77
7.4.330.0050.00015.12
7.4.320.0000.00616.54
7.4.300.0000.00716.48
7.4.290.0000.00716.58
7.4.280.0030.00316.43
7.4.270.0030.00316.55
7.4.260.0030.00316.42
7.4.250.0040.00416.56
7.4.240.0040.00416.60
7.4.230.0070.00016.31
7.4.220.0060.01216.55
7.4.210.0100.00416.54
7.4.200.0050.00316.63
7.4.190.0000.00716.69
7.4.160.0050.01016.32
7.4.150.0110.00617.40
7.4.140.0140.00517.86
7.4.130.0090.00916.50
7.4.120.0090.00816.48
7.4.110.0090.00916.63
7.4.100.0100.00616.41
7.4.90.0070.01016.46
7.4.80.0150.00619.39
7.4.70.0060.00916.46
7.4.60.0100.00616.47
7.4.50.0040.00416.41
7.4.40.0060.00622.77
7.4.30.0150.00916.35
7.4.00.0110.00714.89
7.3.330.0050.00013.09
7.3.320.0000.00512.99
7.3.310.0040.00416.22
7.3.300.0070.00016.27
7.3.290.0030.01116.30
7.3.280.0070.01016.24
7.3.270.0090.00917.40
7.3.260.0170.00016.49
7.3.250.0130.00816.50
7.3.240.0150.00916.36
7.3.230.0110.00716.45
7.3.210.0150.00316.33
7.3.200.0090.01219.39
7.3.190.0100.00716.24
7.3.180.0120.00316.35
7.3.170.0030.01316.27
7.3.160.0030.01316.26
7.3.120.0060.00914.68
7.2.330.0040.01216.74
7.2.320.0030.01416.61
7.2.310.0060.01216.50
7.2.300.0100.00616.46
7.2.290.0130.00316.78
7.2.00.0070.01119.61
7.1.100.0050.00518.33
7.1.70.0030.01217.21
7.1.60.0130.00519.82
7.1.50.0030.01916.99
7.1.00.0030.07322.31
7.0.200.0100.01016.86
7.0.140.0070.07022.18
7.0.60.0070.08319.91
7.0.50.0070.03717.88
7.0.40.0130.07020.21
7.0.30.0270.05320.13
7.0.20.0230.04320.16
7.0.10.0130.05020.01
7.0.00.0100.07720.29
5.6.280.0030.07321.04
5.6.210.0000.07320.64
5.6.200.0070.06318.19
5.6.190.0000.04720.40
5.6.180.3530.03720.45
5.6.170.0300.06320.42
5.6.160.0070.04320.48
5.6.150.0070.08318.09
5.6.140.0070.03718.19
5.6.130.0100.05718.19
5.6.120.0000.04721.02
5.6.110.0000.09320.99
5.6.100.0070.06721.07
5.6.90.0030.05321.01
5.6.80.0070.03320.41
5.6.70.0500.05720.36
5.5.350.0030.08720.29
5.5.340.0000.07317.95
5.5.330.0070.05020.06
5.5.320.0330.07720.18
5.5.310.0270.08720.20
5.5.300.0070.03717.98
5.5.290.0030.04017.92
5.5.280.0070.04320.89
5.5.270.0100.07720.89
5.5.260.0070.09020.75
5.5.250.0070.03720.46
5.5.240.0170.07320.15
5.4.450.0230.04319.39
5.4.440.0530.04319.21
5.4.430.1300.00019.51
5.4.420.1430.00019.44
5.4.410.0200.06718.92
5.4.400.0230.06318.65
5.4.390.0070.05718.61
5.4.380.0170.06318.51
5.4.370.0200.04718.64
5.4.360.0200.04718.72
5.4.350.0270.04318.70
5.4.340.0300.04018.61
5.4.320.0070.03512.46
5.4.310.0050.03912.45
5.4.300.0050.03712.45
5.4.290.0050.03912.45
5.4.280.0090.03812.35
5.4.270.0050.03812.32
5.4.260.0080.03812.32
5.4.250.0060.03712.32
5.4.240.0030.03912.32
5.4.230.0060.04012.31
5.4.220.0080.03812.31
5.4.210.0120.03012.31
5.4.200.0030.03912.31
5.4.190.0140.04312.31
5.4.180.0060.05112.31
5.4.170.0110.04612.32
5.4.160.0060.04112.31
5.4.150.0070.03812.31
5.4.140.0040.03911.99
5.4.130.0090.03311.98
5.4.120.0070.03711.93
5.4.110.0080.03611.93
5.4.100.0060.04111.93
5.4.90.0080.03711.93
5.4.80.0080.03511.93
5.4.70.0080.04311.92
5.4.60.0040.03711.93
5.4.50.0060.03611.92
5.4.40.0050.03811.91
5.4.30.0070.04411.91
5.4.20.0030.03811.91
5.4.10.0050.03711.91
5.4.00.0060.04211.40
5.3.290.0050.04012.80
5.3.280.0040.04112.71
5.3.270.0080.04312.73
5.3.260.0080.03812.72
5.3.250.0050.04312.72
5.3.240.0090.04312.71
5.3.230.0060.03912.71
5.3.220.0080.04912.68
5.3.210.0110.04712.68
5.3.200.0100.04712.68
5.3.190.0040.04212.67
5.3.180.0070.03812.67
5.3.170.0090.03612.67
5.3.160.0070.04812.67
5.3.150.0060.03812.67
5.3.140.0050.03712.66
5.3.130.0050.04012.65
5.3.120.0040.04112.66
5.3.110.0080.03712.65
5.3.100.0070.03512.12
5.3.90.0060.03712.08
5.3.80.0050.03812.07
5.3.70.0080.03412.08
5.3.60.0040.03912.06
5.3.50.0070.03712.00
5.3.40.0060.03712.00
5.3.30.0060.03611.94
5.3.20.0080.03311.70
5.3.10.0090.03111.66
5.3.00.0050.03711.65
5.2.170.0030.0339.15
5.2.160.0030.0309.15
5.2.150.0050.0359.15
5.2.140.0050.0319.15
5.2.130.0050.0309.11
5.2.120.0050.0289.11
5.2.110.0040.0299.11
5.2.100.0050.0329.11
5.2.90.0030.0319.11
5.2.80.0050.0309.11
5.2.70.0040.0369.10
5.2.60.0050.0319.06
5.2.50.0030.0319.03
5.2.40.0100.0239.00
5.2.30.0060.0298.98
5.2.20.0060.0278.97
5.2.10.0060.0288.89
5.2.00.0060.0278.75
5.1.60.0070.0218.04
5.1.50.0030.0268.04
5.1.40.0060.0228.02
5.1.30.0070.0278.36
5.1.20.0060.0298.39
5.1.10.0060.0288.12
5.1.00.0030.0328.11
5.0.50.0030.0216.59
5.0.40.0030.0256.45
5.0.30.0080.0376.27
5.0.20.0060.0236.24
5.0.10.0020.0216.21
5.0.00.0060.0356.21
4.4.90.0040.0214.78
4.4.80.0030.0154.75
4.4.70.0030.0164.76
4.4.60.0040.0144.75
4.4.50.0010.0184.77
4.4.40.0040.0284.71
4.4.30.0050.0134.76
4.4.20.0020.0174.84
4.4.10.0020.0174.85
4.4.00.0030.0254.76
4.3.110.0060.0174.67
4.3.100.0040.0154.67
4.3.90.0030.0144.63
4.3.80.0020.0244.59
4.3.70.0020.0154.63
4.3.60.0040.0134.63
4.3.50.0020.0164.63
4.3.40.0020.0254.53
4.3.30.0050.0133.27
4.3.20.0050.0183.25
4.3.10.0030.0163.21
4.3.00.0000.01715.59

preferences:
43.47 ms | 401 KiB | 5 Q