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.40.0170.00018.73
8.3.30.0080.00619.25
8.3.20.0040.00420.25
8.3.10.0000.00722.08
8.3.00.0040.00419.38
8.2.170.0090.00922.96
8.2.160.0140.00320.20
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0080.00019.22
8.2.110.0090.00319.33
8.2.100.0070.00417.75
8.2.90.0000.00819.34
8.2.80.0080.00017.97
8.2.70.0050.00317.50
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0030.00519.88
8.2.30.0020.00518.00
8.2.20.0040.00417.80
8.2.10.0000.00717.94
8.2.00.0040.00417.54
8.1.270.0080.00020.73
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.01223.92
8.1.230.0110.00017.48
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.22
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0000.00820.50
8.1.160.0040.00422.00
8.1.150.0080.00018.83
8.1.140.0000.00717.38
8.1.130.0030.00317.88
8.1.120.0080.00017.30
8.1.110.0040.00417.36
8.1.100.0020.00517.39
8.1.90.0040.00417.36
8.1.80.0000.00717.33
8.1.70.0000.00817.29
8.1.60.0030.00617.56
8.1.50.0000.00817.44
8.1.40.0070.00017.40
8.1.30.0030.00517.59
8.1.20.0080.00017.62
8.1.10.0070.00017.49
8.1.00.0000.00717.36
8.0.300.0030.00318.77
8.0.290.0000.00716.75
8.0.280.0000.00718.45
8.0.270.0000.00717.20
8.0.260.0060.00017.27
8.0.250.0040.00416.93
8.0.240.0070.00016.96
8.0.230.0030.00316.93
8.0.220.0030.00316.85
8.0.210.0040.00416.76
8.0.200.0030.00316.87
8.0.190.0060.00316.77
8.0.180.0070.00016.87
8.0.170.0060.00316.86
8.0.160.0070.00016.83
8.0.150.0030.00316.67
8.0.140.0070.00016.78
8.0.130.0040.00413.22
8.0.120.0000.00716.82
8.0.110.0040.00416.83
8.0.100.0000.00716.69
8.0.90.0000.00716.84
8.0.80.0100.00616.87
8.0.70.0040.00416.82
8.0.60.0050.00316.77
8.0.50.0000.00716.89
8.0.30.0100.01016.92
8.0.20.0110.01117.40
8.0.10.0040.00416.95
8.0.00.0100.00716.74
7.4.330.0030.00315.07
7.4.320.0070.00016.34
7.4.300.0060.00316.33
7.4.290.0000.00716.45
7.4.280.0040.00416.44
7.4.270.0000.00716.53
7.4.260.0090.00016.51
7.4.250.0000.00816.51
7.4.240.0040.00416.47
7.4.230.0070.00016.57
7.4.220.0200.01416.44
7.4.210.0060.01216.49
7.4.200.0030.00316.45
7.4.160.0140.00816.49
7.4.150.0130.00417.40
7.4.140.0110.00917.86
7.4.130.0060.01116.37
7.4.120.0130.00816.51
7.4.110.0120.01216.32
7.4.100.0040.01216.41
7.4.90.0120.00616.43
7.4.80.0100.00719.39
7.4.70.0070.01016.50
7.4.60.0040.01116.65
7.4.50.0000.00416.13
7.4.40.0110.00816.58
7.4.30.0130.01116.57
7.4.00.0060.00614.98
7.3.330.0000.00613.03
7.3.320.0090.00513.10
7.3.310.0020.00516.26
7.3.300.0030.00316.11
7.3.290.0050.00916.24
7.3.280.0080.01016.25
7.3.270.0060.01217.40
7.3.260.0150.00316.34
7.3.250.0100.00716.36
7.3.240.0130.00316.11
7.3.230.0040.01416.48
7.3.210.0100.00716.49
7.3.200.0060.00919.39
7.3.190.0310.02816.29
7.3.180.0100.00616.26
7.3.170.0120.00916.57
7.3.160.0000.01716.27
7.3.10.0030.00816.08
7.3.00.0090.00316.10
7.2.330.0090.00716.40
7.2.320.0030.01416.52
7.2.310.0120.00616.55
7.2.300.0060.01216.37
7.2.290.0030.01316.65
7.2.130.0070.01116.62
7.2.120.0060.00616.65
7.2.110.0110.00616.46
7.2.100.0060.00616.41
7.2.90.0030.01016.34
7.2.80.0110.00816.63
7.2.70.0090.00916.67
7.2.60.0100.00616.57
7.2.50.0120.00416.28
7.2.40.0040.01116.80
7.2.30.0120.00316.69
7.2.20.0080.00816.65
7.2.10.0170.00316.73
7.2.00.0070.00918.06
7.1.250.0060.00615.43
7.1.200.0040.01115.62
7.1.100.0090.00318.20
7.1.70.0000.00916.95
7.1.60.0040.01119.46
7.1.50.0230.01634.86
7.1.00.0070.07322.31
7.0.200.0060.00316.75
7.0.140.0030.04021.92
7.0.60.0170.07320.06
7.0.50.0070.07717.86
7.0.40.0070.08720.16
7.0.30.0200.07020.27
7.0.20.0170.08320.38
7.0.10.0070.05020.05
7.0.00.0030.05320.12
5.6.280.0030.09021.09
5.6.210.0070.08320.46
5.6.200.0070.08018.12
5.6.190.0100.07720.50
5.6.180.0330.05720.75
5.6.170.0300.06720.55
5.6.160.0130.07720.55
5.6.150.0100.07718.18
5.6.140.0070.05718.17
5.6.130.0170.06018.15
5.6.120.0030.05721.04
5.6.110.0100.06720.99
5.6.100.0000.09320.96
5.6.90.0100.07020.91
5.6.80.0100.07720.41
5.6.70.0200.07320.42
5.5.350.0100.07320.40
5.5.340.0200.06717.95
5.5.330.0100.08020.18
5.5.320.0030.04020.41
5.5.310.0270.05720.24
5.5.300.0030.04017.96
5.5.290.0100.05017.98
5.5.280.0070.04020.79
5.5.270.0230.06320.85
5.5.260.0070.07720.87
5.5.250.0100.05020.67
5.5.240.0030.06020.25
5.4.450.0670.04319.65
5.4.440.0830.05719.70
5.4.430.0030.06019.54
5.4.420.0070.06319.61
5.4.410.0130.05319.46
5.4.400.0270.05318.51
5.4.390.0100.06018.77
5.4.380.0170.05718.61
5.4.370.0230.05018.80
5.4.360.0200.05018.80
5.4.350.0170.05318.63
5.4.340.0100.06018.74
5.4.320.0130.06018.77
5.4.310.0070.08018.78
5.4.300.0170.06018.68
5.4.290.0100.05718.52
5.4.280.0230.07318.62
5.4.270.0330.06318.61
5.4.260.0230.05718.52
5.4.250.0300.04318.68
5.4.240.0200.06018.68
5.4.230.0170.05318.77
5.4.220.0170.06018.75
5.4.210.0170.05018.45
5.4.200.0130.05716.69
5.4.190.0130.05718.66
5.4.180.0100.06018.74
5.4.170.0200.05718.59
5.4.160.0200.05318.63
5.4.150.0100.06318.66
5.4.140.0170.05716.28
5.4.130.0200.04316.26
5.4.120.0230.04316.43
5.4.110.0170.04716.22
5.4.100.0230.04716.28
5.4.90.0130.05316.19
5.4.80.0270.05016.40
5.4.70.0100.06316.26
5.4.60.0230.04716.12
5.4.50.0300.04016.29
5.4.40.0200.05016.24
5.4.30.0170.05716.14
5.4.20.0070.06716.29
5.4.10.0230.04716.15
5.4.00.0200.04315.78
5.3.290.0130.05714.79
5.3.280.0170.05314.69
5.3.270.0030.06714.78
5.3.260.0200.05014.73
5.3.250.0170.05314.62
5.3.240.0170.05714.76
5.3.230.0330.06314.73
5.3.220.0230.05314.66
5.3.210.0200.05014.61
5.3.200.0170.05314.61
5.3.190.0130.05714.66
5.3.180.0170.05014.60
5.3.170.0170.05314.69
5.3.160.0130.05714.61
5.3.150.0170.05014.61
5.3.140.0130.06014.57
5.3.130.0130.05314.59
5.3.120.0200.05314.71
5.3.110.0170.05714.64
5.3.100.0170.05314.08
5.3.90.0200.04314.13
5.3.80.0100.05714.07
5.3.70.0130.05314.22
5.3.60.0130.05314.05
5.3.50.0230.04313.98
5.3.40.0170.05013.99
5.3.30.0170.04713.93
5.3.20.0130.05313.79
5.3.10.0130.05313.69
5.3.00.0200.04713.69
5.2.170.0070.04711.24
5.2.160.0100.04011.12
5.2.150.0100.04311.25
5.2.140.0100.04711.17
5.2.130.0030.04711.21
5.2.120.0030.04711.16
5.2.110.0130.04011.08
5.2.100.0170.03711.30
5.2.90.0070.04711.10
5.2.80.0100.04311.30
5.2.70.0130.04011.22
5.2.60.0130.04011.08
5.2.50.0070.04711.06
5.2.40.0030.04711.20
5.2.30.0100.04310.98
5.2.20.0130.04010.97
5.2.10.0100.04011.06
5.2.00.0100.04010.69
5.1.60.0100.04310.02
5.1.50.0200.02710.09
5.1.40.0100.0379.96
5.1.30.0100.03710.43
5.1.20.0100.03310.57
5.1.10.0070.04310.08
5.1.00.0130.03310.04
5.0.50.0030.0338.66
5.0.40.0070.0278.53
5.0.30.0030.0478.34
5.0.20.0030.0308.32
5.0.10.0100.0238.23
5.0.00.0070.0438.19
4.4.90.0030.0235.96
4.4.80.0100.0175.98
4.4.70.0100.0205.87
4.4.60.0030.0235.91
4.4.50.0100.0205.95
4.4.40.0030.0375.88
4.4.30.0030.0235.88
4.4.20.0070.0205.93
4.4.10.0100.0205.98
4.4.00.0030.0375.94
4.3.110.0070.0235.81
4.3.100.0070.0205.83
4.3.90.0130.0135.79
4.3.80.0070.0375.77
4.3.70.0070.0275.82
4.3.60.0100.0275.79
4.3.50.0130.0275.82
4.3.40.0070.0375.75
4.3.30.0070.0234.59
4.3.20.0130.0234.61
4.3.10.0100.0234.53
4.3.00.0030.0206.93

preferences:
54.97 ms | 400 KiB | 5 Q