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 = 3; $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.0200.00016.63
8.3.50.0130.00722.90
8.3.40.0090.00618.89
8.3.30.0140.00019.04
8.3.20.0040.00420.33
8.3.10.0030.00523.63
8.3.00.0030.00519.26
8.2.180.0100.00616.38
8.2.170.0070.00722.96
8.2.160.0070.00720.15
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0040.00420.95
8.2.110.0060.00320.58
8.2.100.0030.00718.22
8.2.90.0090.00019.20
8.2.80.0030.00517.97
8.2.70.0050.00317.63
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0000.01018.22
8.2.30.0070.00018.08
8.2.20.0040.00417.73
8.2.10.0080.00018.18
8.2.00.0040.00417.62
8.1.280.0170.00325.92
8.1.270.0050.00322.06
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00322.02
8.1.230.0040.00819.16
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0040.00717.23
8.1.190.0030.00617.10
8.1.180.0060.00318.10
8.1.170.0080.00018.49
8.1.160.0000.00722.01
8.1.150.0040.00418.88
8.1.140.0000.01017.35
8.1.130.0000.00817.83
8.1.120.0030.00317.45
8.1.110.0000.00717.43
8.1.100.0000.00817.34
8.1.90.0070.00017.34
8.1.80.0000.00717.43
8.1.70.0040.00417.46
8.1.60.0030.00617.50
8.1.50.0030.00517.42
8.1.40.0050.00217.52
8.1.30.0060.00317.59
8.1.20.0040.00417.52
8.1.10.0070.00017.53
8.1.00.0050.00217.58
8.0.300.0050.00218.77
8.0.290.0070.00016.75
8.0.280.0000.00718.46
8.0.270.0040.00417.20
8.0.260.0040.00417.26
8.0.250.0030.00317.02
8.0.240.0070.00016.91
8.0.230.0030.00316.88
8.0.220.0000.00716.84
8.0.210.0040.00416.89
8.0.200.0030.00316.80
8.0.190.0040.00416.86
8.0.180.0000.00716.90
8.0.170.0060.00316.87
8.0.160.0040.00416.89
8.0.150.0000.00816.86
8.0.140.0070.00016.70
8.0.130.0000.00613.27
8.0.120.0000.00716.71
8.0.110.0050.00316.78
8.0.100.0000.00816.95
8.0.90.0000.00716.73
8.0.80.0060.00816.85
8.0.70.0000.00716.92
8.0.60.0070.00016.77
8.0.50.0080.00016.95
8.0.30.0110.00916.96
8.0.20.0050.01417.40
8.0.10.0000.00717.01
8.0.00.0090.01116.80
7.4.330.0050.00315.00
7.4.320.0030.00316.60
7.4.300.0000.00616.50
7.4.290.0070.00016.48
7.4.280.0040.00416.50
7.4.270.0000.00716.52
7.4.260.0070.00016.46
7.4.250.0050.00316.36
7.4.240.0020.00616.46
7.4.230.0000.00716.47
7.4.220.0100.01616.44
7.4.210.0030.01016.53
7.4.200.0030.00316.41
7.4.160.0090.00616.41
7.4.150.0150.00317.40
7.4.140.0060.01217.86
7.4.130.0130.00516.44
7.4.120.0100.00716.54
7.4.110.0100.00716.44
7.4.100.0100.01016.58
7.4.90.0100.00716.43
7.4.80.0070.01319.39
7.4.70.0140.00916.57
7.4.60.0110.01116.51
7.4.50.0030.00616.58
7.4.40.0100.00516.66
7.4.30.0030.01316.56
7.4.00.0040.00714.79
7.3.330.0030.00313.16
7.3.320.0020.00213.21
7.3.310.0000.00716.33
7.3.300.0030.00316.16
7.3.290.0060.00916.37
7.3.280.0090.00716.32
7.3.270.0110.01117.40
7.3.260.0090.00916.32
7.3.250.0100.01016.30
7.3.240.0060.01116.35
7.3.230.0040.01216.54
7.3.210.0130.00316.23
7.3.200.0090.00919.39
7.3.190.0090.00916.30
7.3.180.0060.00916.41
7.3.170.0110.00416.38
7.3.160.0120.00416.27
7.2.330.0100.00716.84
7.2.320.0100.00716.77
7.2.310.0010.01816.78
7.2.300.0150.00616.42
7.2.290.0040.01316.48
7.2.00.0040.00819.20
7.1.100.0040.00718.21
7.1.70.0050.00317.19
7.1.60.0060.01619.46
7.1.50.0070.01017.14
7.1.00.0030.07722.43
7.0.200.0000.00716.62
7.0.140.0030.07321.95
7.0.60.0030.06020.04
7.0.50.0070.04017.89
7.0.40.0130.04720.04
7.0.30.0230.04320.20
7.0.20.0170.04720.16
7.0.10.0030.04720.13
7.0.00.0100.08720.03
5.6.280.0070.06721.11
5.6.210.0100.04020.54
5.6.200.0030.07018.07
5.6.190.0070.06320.39
5.6.180.0200.04320.43
5.6.170.0370.07320.71
5.6.160.0130.06720.44
5.6.150.0100.05318.19
5.6.140.0070.08018.14
5.6.130.0130.07318.18
5.6.120.0130.08021.00
5.6.110.0030.04020.99
5.6.100.0000.08021.00
5.6.90.0100.03320.97
5.6.80.0030.06320.43
5.5.350.0330.07020.42
5.5.340.0130.05017.88
5.5.330.0070.04720.23
5.5.320.0070.06720.24
5.5.310.0270.08020.12
5.5.300.0000.08318.00
5.5.290.0000.09017.97
5.5.280.0130.04720.96
5.5.270.0070.08320.79
5.5.260.0030.04020.72
5.5.250.0130.08020.66
5.5.240.0000.04320.18
5.4.450.0700.04719.13
5.4.440.0300.04719.45
5.4.430.0300.04319.45
5.4.420.0470.04019.13
5.4.410.0200.04019.45
5.4.400.0330.03018.81
5.4.390.0570.03319.09
5.4.380.0330.05018.50
5.4.370.0430.04718.50
5.4.360.0430.04018.71
5.4.350.0300.05318.46
5.4.340.0370.05318.53
5.4.320.0040.03712.46
5.4.310.0050.03812.45
5.4.300.0060.03612.46
5.4.290.0070.03712.45
5.4.280.0090.03212.35
5.4.270.0050.03712.35
5.4.260.0050.03712.35
5.4.250.0040.03912.35
5.4.240.0080.03512.35
5.4.230.0050.03912.34
5.4.220.0080.03312.34
5.4.210.0050.03512.34
5.4.200.0060.03712.34
5.4.190.0040.03712.34
5.4.180.0050.03712.34
5.4.170.0080.03412.35
5.4.160.0060.03512.34
5.4.150.0050.03612.34
5.4.140.0070.03612.02
5.4.130.0090.03312.02
5.4.120.0070.03411.97
5.4.110.0030.03811.97
5.4.100.0050.03511.96
5.4.90.0100.03211.96
5.4.80.0040.03911.97
5.4.70.0040.03711.97
5.4.60.0040.03611.96
5.4.50.0050.03611.96
5.4.40.0080.03211.95
5.4.30.0070.03411.95
5.4.20.0020.03811.95
5.4.10.0090.03211.95
5.4.00.0040.03811.44
5.3.290.0060.03912.80
5.3.280.0060.03712.71
5.3.270.0070.03712.72
5.3.260.0060.03912.72
5.3.250.0110.04412.72
5.3.240.0050.04012.72
5.3.230.0050.04112.71
5.3.220.0110.03512.68
5.3.210.0100.03512.68
5.3.200.0050.03712.68
5.3.190.0060.03812.68
5.3.180.0080.03512.67
5.3.170.0060.03612.67
5.3.160.0070.03812.67
5.3.150.0060.04112.67
5.3.140.0060.04012.66
5.3.130.0110.03412.66
5.3.120.0070.03712.66
5.3.110.0070.03812.66
5.3.100.0070.04112.12
5.3.90.0050.03812.08
5.3.80.0070.03512.08
5.3.70.0070.03512.07
5.3.60.0050.03712.07
5.3.50.0030.04012.00
5.3.40.0060.03612.00
5.3.30.0050.03611.95
5.3.20.0070.03411.72
5.3.10.0020.04511.70
5.3.00.0060.03611.68
5.2.170.0040.0319.18
5.2.160.0070.0279.18
5.2.150.0030.0349.18
5.2.140.0050.0349.18
5.2.130.0050.0289.14
5.2.120.0050.0289.14
5.2.110.0040.0309.14
5.2.100.0040.0299.14
5.2.90.0050.0289.14
5.2.80.0060.0289.14
5.2.70.0050.0299.14
5.2.60.0040.0319.09
5.2.50.0060.0299.06
5.2.40.0020.0319.04
5.2.30.0040.0309.02
5.2.20.0070.0269.00
5.2.10.0030.0298.93
5.2.00.0070.0268.78
5.1.60.0060.0228.07
5.1.50.0040.0258.06
5.1.40.0040.0248.05
5.1.30.0030.0328.40
5.1.20.0050.0328.42
5.1.10.0020.0288.14
5.1.00.0040.0258.14
5.0.50.0050.0186.62
5.0.40.0050.0176.48
5.0.30.0020.0326.29
5.0.20.0030.0196.27
5.0.10.0040.0196.23
5.0.00.0020.0316.23
4.4.90.0030.0154.78
4.4.80.0010.0174.75
4.4.70.0050.0134.75
4.4.60.0030.0154.75
4.4.50.0020.0164.77
4.4.40.0000.0284.71
4.4.30.0020.0164.76
4.4.20.0040.0144.84
4.4.10.0020.0174.85
4.4.00.0030.0254.76
4.3.110.0030.0154.67
4.3.100.0030.0154.66
4.3.90.0020.0154.63
4.3.80.0030.0244.58
4.3.70.0010.0164.63
4.3.60.0020.0154.63
4.3.50.0030.0154.63
4.3.40.0020.0244.54
4.3.30.0020.0163.28
4.3.20.0010.0173.25
4.3.10.0020.0153.22
4.3.00.0030.01715.68

preferences:
49.89 ms | 401 KiB | 5 Q