3v4l.org

run code in 300+ PHP versions simultaneously
<?php $driver = [ '0' => [ 'options' => [ 'servers' => [ '1' => [ 'host' => 'nox.exchangecore.com' ] ] ] ] ]; $exploded = array('Cache','object','redis','servers','1','host'); $driverBuilder = $driver[0]['options']; for($i = 4; $i < count($exploded); $i++) { $driverBuilder = $driverBuilder[$exploded[$i]]; } echo $driverBuilder;

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.00916.50
8.3.50.0160.00522.79
8.3.40.0090.00618.82
8.3.30.0100.00319.17
8.3.20.0000.00720.20
8.3.10.0060.00323.66
8.3.00.0080.00019.45
8.2.180.0100.00716.63
8.2.170.0120.00322.96
8.2.160.0040.01120.50
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0000.00721.10
8.2.110.0060.00320.52
8.2.100.0080.00318.28
8.2.90.0090.00019.40
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0030.00618.04
8.2.50.0050.00318.07
8.2.40.0070.00318.16
8.2.30.0060.00318.21
8.2.20.0040.00417.91
8.2.10.0040.00418.10
8.2.00.0070.00017.81
8.1.280.0100.01025.92
8.1.270.0050.00322.24
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00321.91
8.1.230.0080.00319.21
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00717.23
8.1.190.0060.00317.35
8.1.180.0080.00018.10
8.1.170.0000.00818.62
8.1.160.0000.00722.02
8.1.150.0050.00318.80
8.1.140.0060.00317.49
8.1.130.0030.00317.82
8.1.120.0070.00017.46
8.1.110.0040.00417.43
8.1.100.0050.00217.34
8.1.90.0040.00417.44
8.1.80.0030.00317.34
8.1.70.0070.00017.46
8.1.60.0030.00617.59
8.1.50.0080.00017.55
8.1.40.0000.00717.55
8.1.30.0000.00717.44
8.1.20.0000.00817.65
8.1.10.0000.00717.56
8.1.00.0080.00017.54
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0030.00318.49
8.0.270.0040.00417.33
8.0.260.0060.00017.19
8.0.250.0000.00716.98
8.0.240.0000.00817.08
8.0.230.0040.00416.79
8.0.220.0030.00316.89
8.0.210.0070.00016.80
8.0.200.0030.00316.85
8.0.190.0040.00416.84
8.0.180.0050.00316.88
8.0.170.0000.00816.95
8.0.160.0070.00017.01
8.0.150.0050.00216.77
8.0.140.0040.00416.86
8.0.130.0050.00013.34
8.0.120.0040.00416.92
8.0.110.0060.00316.92
8.0.100.0070.00016.73
8.0.90.0050.00316.98
8.0.80.0100.00716.89
8.0.70.0050.00216.91
8.0.60.0000.00816.88
8.0.50.0040.00416.81
8.0.30.0080.01317.04
8.0.20.0090.01117.40
8.0.10.0050.00217.12
8.0.00.0080.01016.92
7.4.330.0070.00015.09
7.4.320.0030.00316.37
7.4.300.0030.00316.41
7.4.290.0070.00016.54
7.4.280.0040.00416.50
7.4.270.0030.00316.52
7.4.260.0070.00016.52
7.4.250.0040.00416.53
7.4.240.0060.00216.56
7.4.230.0040.00416.32
7.4.220.0070.01116.65
7.4.210.0120.00916.45
7.4.200.0030.00316.71
7.4.160.0080.00816.57
7.4.150.0110.00717.40
7.4.140.0080.01117.86
7.4.130.0120.00916.51
7.4.120.0090.00816.55
7.4.110.0070.01016.54
7.4.100.0060.01216.43
7.4.90.0060.01116.66
7.4.80.0040.01419.39
7.4.70.0140.00616.40
7.4.60.0080.00816.73
7.4.50.0090.00016.48
7.4.40.0080.00816.80
7.4.30.0120.00416.63
7.4.00.0070.00715.04
7.3.330.0050.00013.36
7.3.320.0050.00013.18
7.3.310.0030.00316.22
7.3.300.0050.00216.21
7.3.290.0070.00716.35
7.3.280.0070.00816.42
7.3.270.0030.01517.40
7.3.260.0070.01016.56
7.3.250.0110.00916.39
7.3.240.0060.01016.51
7.3.230.0030.01916.46
7.3.210.0050.01116.47
7.3.200.0090.00619.39
7.3.190.0130.00316.46
7.3.180.0060.01016.36
7.3.170.0080.00816.45
7.3.160.0080.00816.42
7.2.330.0060.01816.56
7.2.320.0110.00616.75
7.2.310.0170.00716.44
7.2.300.0100.00616.52
7.2.290.0140.00416.66
7.1.70.0000.00817.19
7.1.60.0030.00716.96
7.1.50.0160.00616.64
7.1.00.0030.07322.57
7.0.200.0070.01116.79
7.0.140.0100.07021.91
7.0.60.0030.08319.93
7.0.50.0070.03717.81
7.0.40.0070.05320.04
7.0.30.0400.06720.21
7.0.20.0200.08320.00
7.0.10.0230.08020.19
7.0.00.0070.06720.30
5.6.280.0030.07021.07
5.6.210.0070.08320.61
5.6.200.0030.07018.13
5.6.190.0030.09320.63
5.6.180.0300.06320.43
5.6.170.0130.04320.33
5.6.160.0130.03320.48
5.6.150.0070.08318.21
5.6.140.0100.07318.21
5.6.130.0030.08718.09
5.6.120.0030.06020.98
5.6.110.0100.09321.13
5.6.100.0030.08721.11
5.6.90.0170.06321.05
5.6.80.0130.05020.52
5.6.70.4430.04020.48
5.5.350.0130.08020.43
5.5.340.0070.07717.92
5.5.330.0030.08720.40
5.5.320.0370.07020.27
5.5.310.0200.05720.50
5.5.300.0100.07317.98
5.5.290.0070.07717.95
5.5.280.0000.04320.98
5.5.270.0030.05720.88
5.5.260.0100.08020.61
5.5.250.0000.04320.77
5.5.240.0170.03720.27
5.4.450.0370.04019.14
5.4.440.0330.04719.21
5.4.430.0300.04019.26
5.4.420.0170.04719.57
5.4.410.0500.03319.28
5.4.400.0300.03319.09
5.4.390.0130.04718.92
5.4.380.0830.06718.71
5.4.370.0430.05718.50
5.4.360.0570.07318.72
5.4.350.0500.07018.70
5.4.340.0430.06318.63
5.4.320.0060.03612.45
5.4.310.0060.04012.45
5.4.300.0050.03712.45
5.4.290.0060.03712.45
5.4.280.0050.03512.35
5.4.270.0060.03512.35
5.4.260.0020.04012.35
5.4.250.0100.03212.35
5.4.240.0060.03512.35
5.4.230.0060.03712.34
5.4.220.0050.03712.34
5.4.210.0060.03512.34
5.4.200.0060.03612.34
5.4.190.0100.03112.34
5.4.180.0040.03712.34
5.4.170.0050.03612.35
5.4.160.0060.04012.34
5.4.150.0030.03912.34
5.4.140.0100.03212.03
5.4.130.0010.04012.02
5.4.120.0040.03611.98
5.4.110.0090.04411.96
5.4.100.0070.03411.96
5.4.90.0090.03611.97
5.4.80.0040.03811.96
5.4.70.0030.03711.96
5.4.60.0030.03811.96
5.4.50.0050.03511.96
5.4.40.0040.03611.95
5.4.30.0080.03211.95
5.4.20.0070.03311.95
5.4.10.0030.03711.95
5.4.00.0050.03611.44
5.3.290.0070.03912.80
5.3.280.0040.03912.71
5.3.270.0060.03812.72
5.3.260.0080.03512.72
5.3.250.0050.03712.71
5.3.240.0060.03612.72
5.3.230.0050.03712.71
5.3.220.0080.03412.68
5.3.210.0030.04112.68
5.3.200.0030.03912.68
5.3.190.0050.03912.68
5.3.180.0050.04512.68
5.3.170.0100.03712.67
5.3.160.0050.04212.68
5.3.150.0040.03912.67
5.3.140.0060.03812.66
5.3.130.0040.04512.65
5.3.120.0070.03712.65
5.3.110.0060.03812.66
5.3.100.0080.03512.12
5.3.90.0040.03712.08
5.3.80.0060.03612.07
5.3.70.0040.04112.07
5.3.60.0070.03412.07
5.3.50.0050.03512.00
5.3.40.0080.03612.00
5.3.30.0080.03211.95
5.3.20.0060.03411.73
5.3.10.0070.03611.70
5.3.00.0090.04111.68
5.2.170.0050.0309.18
5.2.160.0070.0279.18
5.2.150.0040.0309.18
5.2.140.0050.0319.18
5.2.130.0040.0319.14
5.2.120.0050.0289.14
5.2.110.0040.0319.15
5.2.100.0050.0299.14
5.2.90.0050.0349.14
5.2.80.0060.0399.14
5.2.70.0050.0449.14
5.2.60.0060.0429.09
5.2.50.0100.0389.05
5.2.40.0090.0269.04
5.2.30.0070.0409.01
5.2.20.0050.0359.00
5.2.10.0050.0288.92
5.2.00.0030.0308.79
5.1.60.0030.0248.06
5.1.50.0040.0248.06
5.1.40.0020.0268.05
5.1.30.0020.0288.40
5.1.20.0050.0258.42
5.1.10.0060.0278.14
5.1.00.0020.0278.14
5.0.50.0020.0226.62
5.0.40.0040.0186.48
5.0.30.0030.0316.29
5.0.20.0050.0186.26
5.0.10.0040.0196.23
5.0.00.0040.0306.23
4.4.90.0020.0164.78
4.4.80.0030.0154.75
4.4.70.0020.0164.75
4.4.60.0040.0144.75
4.4.50.0050.0134.77
4.4.40.0020.0264.70
4.4.30.0020.0164.75
4.4.20.0000.0184.84
4.4.10.0020.0164.85
4.4.00.0030.0254.76
4.3.110.0030.0154.67
4.3.100.0040.0134.66
4.3.90.0030.0144.63
4.3.80.0010.0264.58
4.3.70.0010.0204.63
4.3.60.0030.0144.63
4.3.50.0020.0194.63
4.3.40.0030.0244.54
4.3.30.0010.0173.28
4.3.20.0060.0133.26
4.3.10.0010.0173.22
4.3.00.0000.01715.68

preferences:
36.98 ms | 401 KiB | 5 Q