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);

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.00616.38
8.3.50.0110.00721.89
8.3.40.0140.00018.88
8.3.30.0080.00619.04
8.3.20.0000.00720.34
8.3.10.0040.00421.76
8.3.00.0050.00319.25
8.2.180.0100.01018.16
8.2.170.0090.00622.96
8.2.160.0120.00620.53
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0000.00819.76
8.2.110.0090.00319.31
8.2.100.0120.00017.75
8.2.90.0040.00419.34
8.2.80.0000.00817.97
8.2.70.0030.00717.50
8.2.60.0040.00417.68
8.2.50.0030.00618.07
8.2.40.0000.00818.18
8.2.30.0040.00418.13
8.2.20.0000.00717.75
8.2.10.0040.00418.01
8.2.00.0000.00717.53
8.1.280.0140.00025.92
8.1.270.0040.00420.65
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.92
8.1.230.0040.00817.48
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0080.00017.23
8.1.190.0030.00517.35
8.1.180.0000.00818.10
8.1.170.0040.00420.19
8.1.160.0070.00021.90
8.1.150.0050.00218.78
8.1.140.0040.00417.31
8.1.130.0000.00717.84
8.1.120.0080.00017.40
8.1.110.0040.00417.38
8.1.100.0040.00417.30
8.1.90.0040.00417.34
8.1.80.0000.00817.34
8.1.70.0000.00817.39
8.1.60.0030.00617.54
8.1.50.0040.00417.36
8.1.40.0080.00017.35
8.1.30.0080.00017.59
8.1.20.0000.00817.57
8.1.10.0040.00417.43
8.1.00.0070.00017.52
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0040.00318.35
8.0.270.0070.00017.18
8.0.260.0060.00017.21
8.0.250.0030.00317.02
8.0.240.0030.00317.00
8.0.230.0030.00316.79
8.0.220.0030.00316.89
8.0.210.0040.00416.87
8.0.200.0000.00716.96
8.0.190.0050.00216.86
8.0.180.0000.00716.77
8.0.170.0050.00316.86
8.0.160.0050.00216.94
8.0.150.0000.00816.68
8.0.140.0000.00716.80
8.0.130.0000.00713.21
8.0.120.0000.00816.69
8.0.110.0000.00716.75
8.0.100.0000.00816.87
8.0.90.0040.00416.80
8.0.80.0150.00616.80
8.0.70.0000.00816.80
8.0.60.0000.00716.88
8.0.50.0000.00716.77
8.0.30.0110.00916.93
8.0.20.0140.00717.40
8.0.10.0040.00416.79
8.0.00.0100.00616.82
7.4.330.0050.00015.03
7.4.320.0030.00316.43
7.4.300.0070.00016.52
7.4.290.0030.00316.55
7.4.280.0040.00416.44
7.4.270.0000.00616.31
7.4.260.0030.00316.45
7.4.250.0050.00316.51
7.4.240.0030.00316.43
7.4.230.0070.00016.43
7.4.220.0190.00616.40
7.4.210.0070.00716.48
7.4.200.0000.00716.53
7.4.160.0160.00616.20
7.4.150.0070.01117.40
7.4.140.0130.00817.86
7.4.130.0120.00516.52
7.4.120.0120.00816.59
7.4.110.0100.00716.57
7.4.100.0150.00316.21
7.4.90.0090.00916.48
7.4.80.0120.00919.39
7.4.70.0080.00816.49
7.4.60.0130.00316.47
7.4.50.0040.00016.25
7.4.40.0100.01316.55
7.4.30.0050.01616.49
7.4.00.0030.01014.88
7.3.330.0020.00213.11
7.3.320.0090.00412.96
7.3.310.0030.00316.20
7.3.300.0000.00616.05
7.3.290.0050.01116.25
7.3.280.0070.01016.25
7.3.270.0100.00717.40
7.3.260.0040.01316.08
7.3.250.0130.00816.37
7.3.240.0120.00916.21
7.3.230.0030.02016.39
7.3.210.0080.00816.48
7.3.200.0060.00919.39
7.3.190.0090.00616.29
7.3.180.0060.00916.23
7.3.170.0060.01116.27
7.3.160.0110.00616.53
7.2.330.0070.01116.50
7.2.320.0100.00716.30
7.2.310.0070.01016.49
7.2.300.0100.00716.70
7.2.290.0090.00916.50
7.2.60.0060.00616.77
7.2.00.0070.01019.43
7.1.200.0030.00915.69
7.1.100.0000.01017.90
7.1.70.0030.00717.05
7.1.60.0130.00319.46
7.1.50.0200.01034.79
7.1.00.0030.07722.43
7.0.200.0000.00816.86
7.0.140.0030.06722.09
7.0.60.0070.06719.96
7.0.50.0030.04317.88
7.0.40.0170.07320.14
7.0.30.0300.07320.30
7.0.20.0200.09020.23
7.0.10.0070.07020.08
7.0.00.0030.07720.19
5.6.280.0000.07721.10
5.6.210.0070.07020.75
5.6.200.0070.07718.19
5.6.190.0030.06320.53
5.6.180.0230.06020.60
5.6.170.0230.08320.45
5.6.160.0100.08320.54
5.6.150.0030.08018.25
5.6.140.0030.08718.18
5.6.130.0100.07718.17
5.6.120.0100.03721.14
5.6.110.0100.05020.97
5.6.100.0030.05320.96
5.6.90.0100.08020.94
5.6.80.0030.06020.52
5.6.70.4630.03720.39
5.5.350.0230.08320.32
5.5.340.0230.07318.13
5.5.330.0100.04320.38
5.5.320.0370.07720.43
5.5.310.0330.06720.34
5.5.300.0070.08318.04
5.5.290.0070.06717.98
5.5.280.0070.08320.83
5.5.270.0070.05720.95
5.5.260.0100.07320.60
5.5.250.0030.04320.63
5.5.240.0300.06720.36
5.4.450.0570.08319.47
5.4.440.0800.06019.64
5.4.430.0800.06319.33
5.4.420.0770.06019.48
5.4.410.0670.05319.50
5.4.400.0270.05718.53
5.4.390.0170.06018.52
5.4.380.0270.05018.68
5.4.370.0200.05718.58
5.4.360.0330.05718.61
5.4.350.0130.07018.61
5.4.340.0200.05318.84
5.4.320.0230.05318.58
5.4.310.0230.06018.61
5.4.300.0330.05718.73
5.4.290.0200.07718.58
5.4.280.0200.06318.78
5.4.270.0200.05718.76
5.4.260.0230.07018.73
5.4.250.0300.04718.52
5.4.240.0330.06718.78
5.4.230.0170.06318.70
5.4.220.0230.05018.79
5.4.210.0200.07318.77
5.4.200.0200.05016.61
5.4.190.0070.06318.80
5.4.180.0130.05718.61
5.4.170.0100.08318.77
5.4.160.0130.05718.69
5.4.150.0230.06018.53
5.4.140.0230.04716.32
5.4.130.0100.05316.21
5.4.120.0230.04716.29
5.4.110.0200.04716.30
5.4.100.0200.05016.43
5.4.90.0130.07716.46
5.4.80.0170.05016.14
5.4.70.0170.05716.16
5.4.60.0270.05016.29
5.4.50.0170.06716.29
5.4.40.0270.06316.15
5.4.30.0070.06716.19
5.4.20.0130.05716.29
5.4.10.0100.05716.42
5.4.00.0230.05015.73
5.3.290.0200.07714.70
5.3.280.0270.05014.57
5.3.270.0200.05714.58
5.3.260.0300.07314.63
5.3.250.0270.06314.71
5.3.240.0230.06714.70
5.3.230.0300.05714.73
5.3.220.0170.05714.59
5.3.210.0270.04714.66
5.3.200.0330.05714.58
5.3.190.0170.05714.72
5.3.180.0230.06714.63
5.3.170.0130.06014.77
5.3.160.0170.05714.68
5.3.150.0170.05314.60
5.3.140.0270.04714.68
5.3.130.0170.06014.76
5.3.120.0100.06014.57
5.3.110.0300.05014.67
5.3.100.0200.05014.03
5.3.90.0270.05314.14
5.3.80.0230.05714.18
5.3.70.0200.05014.07
5.3.60.0230.05314.03
5.3.50.0170.06314.02
5.3.40.0170.06014.00
5.3.30.0270.04013.89
5.3.20.0200.04713.73
5.3.10.0230.06313.78
5.3.00.0170.05713.76
5.2.170.0130.04311.24
5.2.160.0200.04711.24
5.2.150.0100.04711.14
5.2.140.0070.04711.18
5.2.130.0170.03711.13
5.2.120.0100.04311.20
5.2.110.0130.04011.16
5.2.100.0070.04711.32
5.2.90.0170.04011.14
5.2.80.0170.04311.15
5.2.70.0200.04311.11
5.2.60.0200.04011.12
5.2.50.0200.03711.07
5.2.40.0130.05711.01
5.2.30.0100.05010.98
5.2.20.0100.04711.17
5.2.10.0100.04310.91
5.2.00.0200.04010.82
5.1.60.0030.04310.19
5.1.50.0070.04010.06
5.1.40.0100.0379.99
5.1.30.0170.03010.45
5.1.20.0130.03710.43
5.1.10.0170.04310.19
5.1.00.0130.04710.11
5.0.50.0100.0278.58
5.0.40.0100.0308.52
5.0.30.0100.0478.23
5.0.20.0130.0378.27
5.0.10.0030.0338.16
5.0.00.0130.0578.34
4.4.90.0100.0305.95
4.4.80.0070.0276.00
4.4.70.0030.0276.00
4.4.60.0070.0235.91
4.4.50.0070.0205.89
4.4.40.0070.0375.93
4.4.30.0070.0205.90
4.4.20.0100.0205.96
4.4.10.0100.0205.89
4.4.00.0070.0475.97
4.3.110.0100.0275.82
4.3.100.0070.0235.82
4.3.90.0070.0205.79
4.3.80.0030.0375.82
4.3.70.0100.0205.79
4.3.60.0070.0205.81
4.3.50.0030.0275.91
4.3.40.0100.0305.76
4.3.30.0130.0234.63
4.3.20.0070.0274.51
4.3.10.0030.0274.60
4.3.00.0070.0236.93

preferences:
39.09 ms | 401 KiB | 5 Q