3v4l.org

run code in 300+ PHP versions simultaneously
<?php $person = array( 'name' => 'John', 'age' => 24, 'locations' => Array ( 'Greenwhich' => Array ( 'New Eltham', 'Central Greenwhich' ), 'Feltham' ) ); echo $person['locations']['Greenwhich'][0]; echo print_r($person, true);

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.0150.00316.38
8.3.50.0080.01021.97
8.3.40.0100.01018.63
8.3.30.0080.00819.13
8.3.20.0000.00720.38
8.3.10.0040.00421.73
8.3.00.0070.00419.38
8.2.180.0170.00316.63
8.2.170.0070.00722.96
8.2.160.0130.00020.38
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.67
8.2.110.0090.00319.10
8.2.100.0120.00017.75
8.2.90.0030.00619.30
8.2.80.0030.00517.97
8.2.70.0030.00617.50
8.2.60.0000.00717.93
8.2.50.0080.00018.07
8.2.40.0040.00420.01
8.2.30.0000.00717.97
8.2.20.0040.00417.74
8.2.10.0000.00718.04
8.2.00.0070.00017.69
8.1.280.0120.00625.92
8.1.270.0030.00620.64
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0060.00323.80
8.1.230.0080.00417.60
8.1.220.0000.00817.76
8.1.210.0090.00018.77
8.1.200.0030.00617.23
8.1.190.0040.00417.13
8.1.180.0070.00018.10
8.1.170.0080.00020.30
8.1.160.0020.00521.99
8.1.150.0040.00418.82
8.1.140.0000.00717.40
8.1.130.0070.00017.89
8.1.120.0040.00417.34
8.1.110.0040.00417.39
8.1.100.0070.00017.30
8.1.90.0040.00417.46
8.1.80.0020.00517.33
8.1.70.0000.00717.32
8.1.60.0030.00617.38
8.1.50.0000.00817.47
8.1.40.0040.00417.51
8.1.30.0050.00317.57
8.1.20.0070.00017.48
8.1.10.0000.00717.52
8.1.00.0000.00917.42
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0030.00318.45
8.0.270.0030.00516.75
8.0.260.0000.00617.17
8.0.250.0070.00016.85
8.0.240.0000.00716.88
8.0.230.0070.00016.90
8.0.220.0030.00316.79
8.0.210.0080.00016.83
8.0.200.0000.00716.90
8.0.190.0030.00616.82
8.0.180.0030.00516.79
8.0.170.0030.00616.86
8.0.160.0000.00716.73
8.0.150.0030.00316.79
8.0.140.0070.00016.71
8.0.130.0060.00313.24
8.0.120.0060.00316.68
8.0.110.0070.00016.89
8.0.100.0000.00716.87
8.0.90.0040.00416.89
8.0.80.0070.00816.78
8.0.70.0040.00416.80
8.0.60.0050.00216.73
8.0.50.0000.00716.69
8.0.30.0150.01017.11
8.0.20.0060.01217.40
8.0.10.0070.00016.93
8.0.00.0120.00516.75
7.4.330.0000.00515.03
7.4.320.0000.00616.43
7.4.300.0080.00016.52
7.4.290.0030.00316.43
7.4.280.0000.00916.28
7.4.270.0000.00716.54
7.4.260.0030.00316.34
7.4.250.0000.00716.50
7.4.240.0020.00516.51
7.4.230.0040.00416.35
7.4.220.0100.01016.55
7.4.210.0080.00616.53
7.4.200.0030.00316.32
7.4.160.0100.01016.32
7.4.150.0120.00617.40
7.4.140.0110.00817.86
7.4.130.0110.00716.47
7.4.120.0110.01116.52
7.4.110.0060.01016.41
7.4.100.0180.00016.36
7.4.90.0120.00416.49
7.4.80.0100.01019.39
7.4.70.0100.00716.36
7.4.60.0030.01316.32
7.4.50.0040.00416.49
7.4.40.0110.00716.33
7.4.30.0130.00616.45
7.4.00.0000.01414.88
7.3.330.0020.00213.13
7.3.320.0030.01112.93
7.3.310.0000.00716.12
7.3.300.0060.00016.04
7.3.290.0090.00916.24
7.3.280.0060.01216.29
7.3.270.0130.00717.40
7.3.260.0080.00916.38
7.3.250.0120.00516.46
7.3.240.0130.01016.25
7.3.230.0120.00616.39
7.3.210.0140.00716.33
7.3.200.0120.00919.39
7.3.190.0190.03016.38
7.3.180.0140.00316.25
7.3.170.0120.00916.39
7.3.160.0030.01616.29
7.2.330.0170.00016.61
7.2.320.0120.01216.65
7.2.310.0130.00316.74
7.2.300.0130.00316.23
7.2.290.0070.01016.63
7.2.110.0140.01016.61
7.2.00.0060.00619.18
7.1.100.0030.00918.02
7.1.70.0070.00417.03
7.1.60.0070.01019.46
7.1.50.0170.01434.76
7.1.00.0030.07322.31
7.0.200.0070.00316.75
7.0.140.0070.03022.20
7.0.60.0130.07019.98
7.0.50.0130.07017.97
7.0.40.0100.07720.20
7.0.30.0400.06020.10
7.0.20.0270.08020.09
7.0.10.0100.04720.23
7.0.00.0100.07720.19
5.6.210.0070.07720.55
5.6.200.0070.08018.12
5.6.190.0030.09320.46
5.6.180.0230.06320.60
5.6.170.0230.04720.51
5.6.160.0030.08320.50
5.6.150.0030.07718.28
5.6.140.0030.04318.15
5.6.130.0070.04718.19
5.6.120.0070.07020.89
5.6.110.0170.05720.97
5.6.100.0170.06720.98
5.6.90.0070.06321.00
5.6.80.0030.07720.35
5.6.70.0200.08020.45
5.5.350.0170.08720.38
5.5.340.0100.05717.91
5.5.330.0100.08020.34
5.5.320.0100.04020.35
5.5.310.0300.06020.26
5.5.300.0030.04017.95
5.5.290.0030.04317.95
5.5.280.0100.03720.79
5.5.270.0070.04720.74
5.5.260.0130.05020.64
5.5.250.0100.06320.77
5.5.240.0100.06720.36
5.4.450.0670.06319.20
5.4.440.1000.06319.61
5.4.430.0800.05019.55
5.4.420.0100.05719.61
5.4.410.0830.06019.34
5.4.400.0300.06718.77
5.4.390.0170.08018.53
5.4.380.0270.07018.59
5.4.370.0200.05318.61
5.4.360.0300.06318.59
5.4.350.0130.06318.80
5.4.340.0170.07018.59
5.4.320.0200.05718.79
5.4.310.0230.05018.75
5.4.300.0300.05318.46
5.4.290.0130.07718.78
5.4.280.0100.06318.65
5.4.270.0270.06718.60
5.4.260.0230.05018.60
5.4.250.0170.06018.60
5.4.240.0170.06018.62
5.4.230.0270.05718.61
5.4.220.0070.06318.51
5.4.210.0200.04718.79
5.4.200.0330.05316.61
5.4.190.0330.06318.59
5.4.180.0130.08318.47
5.4.170.0300.05318.50
5.4.160.0230.05318.62
5.4.150.0130.08718.76
5.4.140.0230.05316.43
5.4.130.0200.04716.29
5.4.120.0230.04316.21
5.4.110.0170.04716.43
5.4.100.0200.05016.17
5.4.90.0170.05016.20
5.4.80.0170.05016.30
5.4.70.0130.05716.14
5.4.60.0170.05716.25
5.4.50.0230.05716.29
5.4.40.0330.05716.38
5.4.30.0130.05316.16
5.4.20.0270.05016.23
5.4.10.0130.06016.38
5.4.00.0200.06715.71
5.3.290.0230.05314.66
5.3.280.0130.06714.64
5.3.270.0270.05714.58
5.3.260.0170.05714.70
5.3.250.0170.06014.80
5.3.240.0300.04014.65
5.3.230.0230.04314.77
5.3.220.0330.05714.61
5.3.210.0300.04014.58
5.3.200.0070.06014.56
5.3.190.0100.05714.59
5.3.180.0300.03714.69
5.3.170.0170.05014.66
5.3.160.0230.04314.55
5.3.150.0230.05314.55
5.3.140.0230.05014.60
5.3.130.0100.05714.59
5.3.120.0200.05014.70
5.3.110.0130.06714.60
5.3.100.0200.06314.23
5.3.90.0300.05014.03
5.3.80.0270.04314.13
5.3.70.0270.04314.14
5.3.60.0200.04714.04
5.3.50.0170.05014.04
5.3.40.0170.06013.98
5.3.30.0230.04014.04
5.3.20.0100.05713.79
5.3.10.0130.05313.82
5.3.00.0170.07013.67
5.2.170.0100.04711.12
5.2.160.0200.04011.17
5.2.150.0130.04011.16
5.2.140.0100.04311.17
5.2.130.0200.03311.22
5.2.120.0230.03011.09
5.2.110.0230.04711.15
5.2.100.0200.04311.21
5.2.90.0170.03711.21
5.2.80.0100.04311.16
5.2.70.0200.03711.14
5.2.60.0200.05711.26
5.2.50.0200.05011.04
5.2.40.0100.05311.04
5.2.30.0230.05011.00
5.2.20.0170.04010.95
5.2.10.0130.05310.85
5.2.00.0100.04010.82
5.1.60.0230.02310.06
5.1.50.0200.03010.18
5.1.40.0100.0379.96
5.1.30.0100.04310.38
5.1.20.0100.04010.48
5.1.10.0100.03710.15
5.1.00.0100.04710.13
5.0.50.0100.0278.68
5.0.40.0070.0308.61
5.0.30.0030.0478.31
5.0.20.0100.0238.38
5.0.10.0030.0308.30
5.0.00.0030.0478.20
4.4.90.0070.0335.91
4.4.80.0030.0236.00
4.4.70.0070.0235.89
4.4.60.0070.0205.90
4.4.50.0070.0205.89
4.4.40.0070.0375.88
4.4.30.0170.0105.82
4.4.20.0000.0305.97
4.4.10.0030.0235.97
4.4.00.0030.0375.95
4.3.110.0100.0205.90
4.3.100.0070.0205.85
4.3.90.0070.0205.88
4.3.80.0070.0335.80
4.3.70.0070.0205.81
4.3.60.0030.0235.78
4.3.50.0030.0235.78
4.3.40.0130.0275.78
4.3.30.0030.0234.57
4.3.20.0000.0274.66
4.3.10.0000.0274.49
4.3.00.0170.0206.93

preferences:
53.65 ms | 401 KiB | 5 Q