3v4l.org

run code in 300+ PHP versions simultaneously
<?php $segment["whatever"] = array(1,2,3); $segment["whoever"] = array('a','b','c'); print_r($segment[array_keys($segment)[1]]); ?>

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.0160.00016.50
8.3.50.0130.00321.98
8.3.40.0140.00018.58
8.3.30.0070.00718.96
8.3.20.0040.00420.26
8.3.10.0000.00923.65
8.3.00.0030.00519.26
8.2.180.0110.00418.04
8.2.170.0150.00622.96
8.2.160.0100.01020.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00022.21
8.2.110.0040.00422.18
8.2.100.0060.00617.78
8.2.90.0000.00819.18
8.2.80.0060.00317.97
8.2.70.0060.00317.63
8.2.60.0000.00917.93
8.2.50.0070.00318.07
8.2.40.0040.00418.03
8.2.30.0040.00418.05
8.2.20.0000.00717.61
8.2.10.0040.00417.92
8.2.00.0030.00717.61
8.1.280.0140.00025.92
8.1.270.0080.00021.98
8.1.260.0090.00026.35
8.1.250.0060.00328.09
8.1.240.0050.00523.96
8.1.230.0070.00419.10
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0080.00017.35
8.1.190.0030.00517.28
8.1.180.0040.00418.10
8.1.170.0060.00318.56
8.1.160.0040.00421.93
8.1.150.0040.00418.46
8.1.140.0040.00417.31
8.1.130.0030.00317.62
8.1.120.0070.00017.23
8.1.110.0040.00417.33
8.1.100.0030.00317.20
8.1.90.0000.00717.32
8.1.80.0000.00817.22
8.1.70.0000.00717.25
8.1.60.0030.00517.34
8.1.50.0040.00417.38
8.1.40.0000.00817.32
8.1.30.0030.00517.43
8.1.20.0050.00217.46
8.1.10.0060.00317.29
8.1.00.0030.00617.35
8.0.300.0070.00018.77
8.0.290.0040.00417.05
8.0.280.0020.00518.37
8.0.270.0000.00717.13
8.0.260.0030.00317.13
8.0.250.0040.00416.79
8.0.240.0050.00316.75
8.0.230.0040.00416.80
8.0.220.0030.00316.77
8.0.210.0000.00716.64
8.0.200.0000.00616.82
8.0.190.0050.00216.68
8.0.180.0070.00016.76
8.0.170.0000.00816.79
8.0.160.0000.00716.74
8.0.150.0070.00016.66
8.0.140.0000.00716.75
8.0.130.0060.00013.17
8.0.120.0080.00016.75
8.0.110.0050.00216.83
8.0.100.0080.00016.55
8.0.90.0040.00416.74
8.0.80.0060.00916.73
8.0.70.0000.00716.58
8.0.60.0070.00016.77
8.0.50.0000.00716.63
8.0.30.0090.00916.99
8.0.20.0120.00817.40
8.0.10.0000.00716.83
8.0.00.0080.01016.68
7.4.330.0030.00315.01
7.4.320.0030.00316.48
7.4.300.0000.00616.51
7.4.290.0020.00516.52
7.4.280.0070.00016.43
7.4.270.0000.00816.42
7.4.260.0070.00016.30
7.4.250.0030.00316.37
7.4.240.0030.00316.33
7.4.230.0070.00016.50
7.4.220.0100.00716.46
7.4.210.0090.00716.53
7.4.200.0030.00616.55
7.4.190.0080.00016.61
7.4.160.0130.00316.33
7.4.150.0120.00417.40
7.4.140.0110.00917.86
7.4.130.0080.00816.32
7.4.120.0110.00616.52
7.4.110.0120.01216.63
7.4.100.0070.01016.55
7.4.90.0000.01716.42
7.4.80.0090.01219.39
7.4.70.0100.00716.25
7.4.60.0090.01216.38
7.4.50.0000.00816.30
7.4.40.0030.00922.77
7.4.30.0070.00716.47
7.4.00.0050.01314.68
7.3.330.0000.00613.13
7.3.320.0030.00313.20
7.3.310.0030.00316.35
7.3.300.0030.00316.25
7.3.290.0060.00916.22
7.3.280.0120.00316.25
7.3.270.0150.01017.40
7.3.260.0100.01016.41
7.3.250.0120.00816.48
7.3.240.0090.01016.39
7.3.230.0080.00916.39
7.3.210.0100.00716.09
7.3.200.0070.01719.39
7.3.190.0070.01016.27
7.3.180.0100.01016.20
7.3.170.0080.00816.27
7.3.160.0170.00416.59
7.3.120.0070.01114.83
7.3.110.0070.01015.00
7.3.100.0030.00614.71
7.3.90.0030.01014.84
7.3.80.0060.01214.44
7.3.70.0040.01114.81
7.3.60.0090.00614.63
7.3.50.0120.00014.89
7.3.40.0060.00914.81
7.3.30.0060.00914.79
7.3.20.0000.01116.51
7.3.10.0000.01216.67
7.3.00.0000.01116.83
7.2.330.0070.01116.39
7.2.320.0150.00716.40
7.2.310.0090.01016.61
7.2.300.0150.00916.54
7.2.290.0060.01816.61
7.2.250.0060.01015.22
7.2.240.0070.01015.04
7.2.230.0070.00714.42
7.2.220.0070.00414.57
7.2.210.0070.00715.04
7.2.200.0030.00914.95
7.2.190.0070.01014.85
7.2.180.0030.00914.96
7.2.170.0030.01015.02
7.2.00.0030.01118.94
7.1.330.0000.01315.93
7.1.320.0060.00915.41
7.1.310.0080.00815.53
7.1.300.0030.00615.69
7.1.290.0090.00615.80
7.1.280.0060.00915.55
7.1.270.0140.00015.92
7.1.260.0030.01015.55
7.1.100.0000.01318.17
7.1.70.0100.00517.07
7.1.60.0040.01519.33
7.1.50.0090.00916.63
7.1.00.0070.07022.44
7.0.200.0280.01314.91
7.0.140.0000.07722.08
7.0.60.0170.03320.03
7.0.50.0030.06017.86
7.0.40.0100.07720.27
7.0.30.0330.07320.08
7.0.20.0400.06320.15
7.0.10.0130.06720.09
7.0.00.0070.05020.06
5.6.280.0030.07021.09
5.6.210.0100.04020.75
5.6.200.0100.05318.14
5.6.190.0170.04020.67
5.6.180.0170.04020.57
5.6.170.0300.07320.47
5.6.160.0070.05720.52
5.6.150.0070.08718.28
5.6.140.0030.04718.15
5.6.130.0000.04318.22
5.6.120.0070.04021.14
5.6.110.0130.07021.06
5.6.100.0130.05321.01
5.6.90.0130.08021.07
5.6.80.0070.04020.41
5.6.70.1300.03720.36
5.5.350.0200.07320.40
5.5.340.0030.07018.07
5.5.330.0100.06720.27
5.5.320.0270.06320.35
5.5.310.0300.06320.39
5.5.300.0000.07018.07
5.5.290.0100.05017.98
5.5.280.0100.03720.79
5.5.270.0170.07720.67
5.5.260.0200.06720.97
5.5.250.0200.07320.60
5.5.240.0100.08720.11
5.4.450.0930.06719.63
5.4.440.0900.04719.70
5.4.430.0430.06719.38
5.4.420.0230.06019.46
5.4.410.0700.06319.48
5.4.400.0200.05719.02
5.4.390.0830.06019.28
5.4.380.0430.06318.63
5.4.370.0370.06718.55
5.4.360.0200.05718.53
5.4.350.0330.04718.52
5.4.340.0330.05018.59
5.4.320.0080.03412.48
5.4.310.0060.04312.47
5.4.300.0050.04112.48
5.4.290.0050.03812.48
5.4.280.0110.04812.34
5.4.270.0090.04912.34
5.4.260.0090.05212.34
5.4.250.0060.05512.34
5.4.240.0080.05212.34
5.4.230.0110.05112.33
5.4.220.0110.05312.33
5.4.210.0090.05212.34
5.4.200.0060.05512.34
5.4.190.0060.05312.33
5.4.180.0090.04812.33
5.4.170.0130.05012.34
5.4.160.0060.05112.34
5.4.150.0070.04812.33
5.4.140.0100.03912.02
5.4.130.0110.03712.01
5.4.120.0100.04911.96
5.4.110.0090.05311.96
5.4.100.0150.04911.96
5.4.90.0110.07511.96
5.4.80.0140.04611.96
5.4.70.0080.06411.96
5.4.60.0120.04411.96
5.4.50.0090.05311.96
5.4.40.0140.04711.95
5.4.30.0090.04911.95
5.4.20.0080.05011.95
5.4.10.0130.04711.95
5.4.00.0140.04811.44
5.3.290.0060.04212.80
5.3.280.0110.04512.71
5.3.270.0110.04912.72
5.3.260.0050.05512.72
5.3.250.0040.05012.72
5.3.240.0060.03812.72
5.3.230.0110.04412.71
5.3.220.0040.04812.68
5.3.210.0070.04012.68
5.3.200.0060.05212.68
5.3.190.0040.04312.68
5.3.180.0070.05312.67
5.3.170.0080.05212.67
5.3.160.0090.04712.67
5.3.150.0060.04812.67
5.3.140.0100.04112.66
5.3.130.0070.04212.66
5.3.120.0040.04112.66
5.3.110.0060.04012.66
5.3.100.0080.03912.12
5.3.90.0050.04112.08
5.3.80.0090.03712.07
5.3.70.0090.03812.07
5.3.60.0120.04312.06
5.3.50.0130.04012.00
5.3.40.0080.04712.00
5.3.30.0080.03911.94
5.3.20.0140.04311.70
5.3.10.0070.05211.67
5.3.00.0080.05011.66
5.2.170.0070.0389.16
5.2.160.0040.0349.15
5.2.150.0050.0369.15
5.2.140.0070.0309.15
5.2.130.0050.0299.11
5.2.120.0030.0419.11
5.2.110.0090.0359.12
5.2.100.0020.0349.12
5.2.90.0040.0339.11
5.2.80.0050.0419.11
5.2.70.0070.0419.11
5.2.60.0030.0339.06
5.2.50.0040.0389.04
5.2.40.0070.0369.01
5.2.30.0030.0368.98
5.2.20.0080.0258.98
5.2.10.0060.0398.91
5.2.00.0060.0438.76
5.1.60.0050.0348.05
5.1.50.0030.0348.05
5.1.40.0060.0338.03
5.1.30.0110.0308.38
5.1.20.0080.0358.40
5.1.10.0080.0328.13
5.1.00.0050.0348.13
5.0.50.0080.0236.61
5.0.40.0070.0236.46
5.0.30.0050.0386.28
5.0.20.0030.0266.25
5.0.10.0050.0266.23
5.0.00.0010.0386.21
4.4.90.0050.0134.78
4.4.80.0030.0144.75
4.4.70.0020.0164.76
4.4.60.0020.0204.76
4.4.50.0060.0294.77
4.4.40.0040.0344.71
4.4.30.0070.0144.76
4.4.20.0050.0144.84
4.4.10.0040.0154.85
4.4.00.0020.0264.76
4.3.110.0030.0154.67
4.3.100.0030.0154.66
4.3.90.0030.0154.63
4.3.80.0030.0254.58
4.3.70.0040.0154.63
4.3.60.0050.0184.63
4.3.50.0010.0184.63
4.3.40.0010.0264.54
4.3.30.0020.0163.28
4.3.20.0030.0163.25
4.3.10.0030.0153.22
4.3.00.0230.01710.37

preferences:
38.87 ms | 401 KiB | 5 Q