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' ) ); 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.0040.01118.64
8.3.30.0090.00918.88
8.3.20.0040.00420.16
8.3.10.0080.00021.87
8.3.00.0060.00319.26
8.2.170.0000.01522.96
8.2.160.0140.00320.39
8.2.150.0070.00024.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00419.54
8.2.110.0060.00321.01
8.2.100.0120.00017.72
8.2.90.0000.00917.90
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0070.00017.93
8.2.50.0000.00818.07
8.2.40.0080.00017.86
8.2.30.0040.00417.89
8.2.20.0070.00017.66
8.2.10.0000.00717.86
8.2.00.0060.00317.48
8.1.270.0080.00020.57
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00022.53
8.1.230.0060.00620.95
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0000.00817.13
8.1.180.0080.00018.10
8.1.170.0040.00420.20
8.1.160.0040.00422.04
8.1.150.0040.00418.75
8.1.140.0070.00017.40
8.1.130.0000.00717.75
8.1.120.0030.00317.34
8.1.110.0000.00817.39
8.1.100.0040.00417.27
8.1.90.0000.00717.41
8.1.80.0070.00017.42
8.1.70.0000.00717.39
8.1.60.0040.00417.53
8.1.50.0080.00017.44
8.1.40.0030.00617.32
8.1.30.0000.00817.44
8.1.20.0070.00017.60
8.1.10.0050.00317.25
8.1.00.0080.00017.29
8.0.300.0000.00720.03
8.0.290.0000.00716.63
8.0.280.0000.00718.33
8.0.270.0000.00817.26
8.0.260.0000.00717.17
8.0.250.0030.00316.87
8.0.240.0000.00616.78
8.0.230.0000.00716.80
8.0.220.0070.00016.71
8.0.210.0000.00716.74
8.0.200.0030.00316.75
8.0.190.0070.00016.85
8.0.180.0040.00416.85
8.0.170.0050.00316.73
8.0.160.0000.00716.72
8.0.150.0070.00016.73
8.0.140.0040.00416.79
8.0.130.0050.00313.21
8.0.120.0030.00516.83
8.0.110.0000.00716.73
8.0.100.0000.00816.80
8.0.90.0040.00416.88
8.0.80.0050.01016.84
8.0.70.0000.00716.79
8.0.60.0040.00416.77
8.0.50.0080.00016.84
8.0.30.0110.01217.03
8.0.20.0090.00917.40
8.0.10.0040.00416.93
8.0.00.0100.00716.64
7.4.330.0000.00515.09
7.4.320.0000.00616.32
7.4.300.0080.00016.43
7.4.290.0030.00316.42
7.4.280.0030.00316.46
7.4.270.0000.00616.57
7.4.260.0030.00316.45
7.4.250.0070.00016.49
7.4.240.0040.00416.46
7.4.230.0070.00016.34
7.4.220.0130.00616.56
7.4.210.0030.01316.29
7.4.200.0000.00716.41
7.4.160.0140.00716.39
7.4.150.0090.00917.40
7.4.140.0130.00817.86
7.4.130.0090.01116.37
7.4.120.0080.01116.35
7.4.110.0040.01316.30
7.4.100.0090.01316.42
7.4.90.0070.01016.46
7.4.80.0100.00719.39
7.4.70.0120.00316.33
7.4.60.0130.00316.36
7.4.50.0000.00916.21
7.4.40.0000.01616.26
7.4.30.0130.00816.30
7.4.00.0070.01014.66
7.3.330.0050.00013.04
7.3.320.0150.00012.95
7.3.310.0000.00716.16
7.3.300.0000.00616.02
7.3.290.0100.00716.12
7.3.280.0110.00816.13
7.3.270.0150.00317.40
7.3.260.0140.00316.17
7.3.250.0040.01416.25
7.3.240.0030.01716.13
7.3.230.0120.00916.44
7.3.210.0080.01216.35
7.3.200.0070.00719.39
7.3.190.0250.01916.41
7.3.180.0030.01416.35
7.3.170.0080.00816.27
7.3.160.0170.00016.12
7.3.120.0120.00314.36
7.3.110.0090.00614.73
7.3.100.0100.00714.82
7.3.90.0070.00714.84
7.3.80.0070.00715.05
7.3.70.0140.00014.70
7.3.60.0040.00714.74
7.3.50.0060.00314.58
7.3.40.0030.00714.79
7.3.30.0040.00714.72
7.3.20.0070.00416.19
7.3.10.0070.00416.55
7.3.00.0060.00516.50
7.2.330.0130.00816.20
7.2.320.0030.01416.34
7.2.310.0140.00416.33
7.2.300.0090.00916.35
7.2.290.0140.00816.48
7.2.240.0120.00314.70
7.2.230.0130.00314.71
7.2.220.0030.00914.76
7.2.210.0090.00915.04
7.2.200.0110.00414.88
7.2.190.0070.01014.90
7.2.180.0000.00914.96
7.2.170.0040.00814.73
7.2.160.0000.01114.97
7.2.150.0000.01116.89
7.2.140.0040.00816.69
7.2.130.0080.00416.46
7.2.120.0040.00816.62
7.2.110.0060.00616.73
7.2.100.0040.00816.56
7.2.90.0040.00816.77
7.2.80.0040.00816.54
7.2.70.0080.00416.61
7.2.60.0070.00516.79
7.2.50.0040.00816.80
7.2.40.0030.00916.72
7.2.30.0040.00816.82
7.2.20.0080.00416.75
7.2.10.0100.00216.71
7.2.00.0050.00617.84
7.1.330.0110.00615.58
7.1.320.0090.00615.55
7.1.310.0040.01115.72
7.1.300.0030.01015.76
7.1.290.0070.00315.58
7.1.280.0070.00415.54
7.1.270.0030.00715.60
7.1.260.0000.01015.71
7.1.250.0000.01015.72
7.1.200.0070.00715.41
7.1.100.0000.01518.00
7.1.70.0030.00317.09
7.1.60.0060.01219.46
7.1.50.0170.01734.59
7.1.00.0070.07322.28
7.0.200.0040.00416.39
7.0.140.0070.03021.97
7.0.60.0100.06319.84
7.0.50.0100.06717.86
7.0.40.0070.05020.30
7.0.30.0130.04720.06
7.0.20.0270.05720.30
7.0.10.0230.05320.24
7.0.00.0000.05320.23
5.6.280.0070.06720.88
5.6.210.0070.06720.75
5.6.200.0070.07018.25
5.6.190.0000.05020.49
5.6.180.0270.05320.46
5.6.170.0200.07320.52
5.6.160.0100.08320.50
5.6.150.0070.06718.18
5.6.140.0030.05718.18
5.6.130.0030.06018.28
5.6.120.0030.05721.00
5.6.110.0100.08320.96
5.6.100.0100.06721.12
5.6.90.0100.04021.09
5.6.80.0070.03720.32
5.6.70.0230.04320.49
5.5.350.0170.07320.42
5.5.340.0170.03717.99
5.5.330.0100.05020.46
5.5.320.0030.03720.20
5.5.310.0400.07020.31
5.5.300.0030.04718.08
5.5.290.0100.04717.98
5.5.280.0100.08020.87
5.5.270.0030.04320.75
5.5.260.0000.07720.86
5.5.250.0170.04020.68
5.5.240.0200.06320.28
5.4.450.0170.07319.64
5.4.440.0230.06019.30
5.4.430.0230.04019.55
5.4.420.0270.05319.45
5.4.410.0200.08019.28
5.4.400.0200.04019.15
5.4.390.0300.04718.98
5.4.380.0230.08319.24
5.4.370.0330.05019.13
5.4.360.0270.07719.18
5.4.350.0200.04719.18
5.4.340.0270.03319.15
5.4.320.0270.04019.20
5.4.310.0200.03719.24
5.4.300.0330.06319.14
5.4.290.0300.04319.13
5.4.280.0300.03019.09
5.4.270.0200.05019.22
5.4.260.0270.05019.21
5.4.250.0270.04319.21
5.4.240.0270.06718.83
5.4.230.0300.06319.17
5.4.220.0200.03719.31
5.4.210.0270.03319.21
5.4.200.0200.07018.94
5.4.190.0300.03319.12
5.4.180.0200.05719.15
5.4.170.0200.04019.21
5.4.160.0230.03718.97
5.4.150.0300.02718.94
5.4.140.0130.04016.65
5.4.130.0330.07016.50
5.4.120.0130.03716.48
5.4.110.0130.04016.37
5.4.100.0270.05316.56
5.4.90.0170.03316.52
5.4.80.0200.03016.26
5.4.70.0230.07016.57
5.4.60.0170.03716.38
5.4.50.0200.04016.42
5.4.40.0230.06716.42
5.4.30.0130.03716.61
5.4.20.0100.04016.42
5.4.10.0170.03316.32
5.4.00.0230.05315.86
5.3.290.0200.04714.80
5.3.280.0100.04314.51
5.3.270.0270.05014.50
5.3.260.0170.04014.82
5.3.250.0200.03314.56
5.3.240.0200.03714.57
5.3.230.0170.04014.60
5.3.220.0200.03314.63
5.3.210.0230.05314.57
5.3.200.0170.03714.61
5.3.190.0300.04314.54
5.3.180.0200.03314.51
5.3.170.0170.03714.46
5.3.160.0130.04014.48
5.3.150.0200.04314.54
5.3.140.0170.03714.66
5.3.130.0170.03714.68
5.3.120.0130.05014.51
5.3.110.0230.04314.43
5.3.100.0170.03714.08
5.3.90.0130.04013.98
5.3.80.0100.04314.03
5.3.70.0230.03014.01
5.3.60.0130.03714.22
5.3.50.0130.04014.09
5.3.40.0070.04713.84
5.3.30.0200.03013.91
5.3.20.0100.04313.59
5.3.10.0130.03713.67
5.3.00.0200.03013.54
5.2.170.0070.03311.23
5.2.160.0130.04011.23
5.2.150.0100.03311.23
5.2.140.0100.03311.23
5.2.130.0100.06711.23
5.2.120.0070.03311.23
5.2.110.0170.03311.23
5.2.100.0100.03711.23
5.2.90.0170.03311.23
5.2.80.0170.03311.23
5.2.70.0200.02311.23
5.2.60.0230.02711.23
5.2.50.0130.03711.23
5.2.40.0100.02711.23
5.2.30.0070.03311.23
5.2.20.0100.03311.23
5.2.10.0130.06311.23
5.2.00.0100.03311.23
5.1.60.0100.02311.23
5.1.50.0130.02711.23
5.1.40.0130.02011.23
5.1.30.0100.05011.23
5.1.20.0170.05311.23
5.1.10.0130.04711.23
5.1.00.0130.04711.23
5.0.50.0100.04011.23
5.0.40.0000.04711.23
5.0.30.0100.04711.23
5.0.20.0070.02011.23
5.0.10.0070.02311.23
5.0.00.0130.05711.23
4.4.90.0000.02011.23
4.4.80.0070.03311.23
4.4.70.0030.01711.23
4.4.60.0030.03311.23
4.4.50.0070.01311.23
4.4.40.0070.02011.23
4.4.30.0030.02011.23
4.4.20.0130.02311.23
4.4.10.0070.03311.23
4.4.00.0030.04011.23
4.3.110.0070.01711.23
4.3.100.0100.01311.23
4.3.90.0100.03011.23
4.3.80.0070.03711.23
4.3.70.0100.01711.23
4.3.60.0070.01711.23
4.3.50.0000.02311.23
4.3.40.0100.02011.23
4.3.30.0030.02011.23
4.3.20.0030.02011.23
4.3.10.0030.02011.23
4.3.00.0070.03311.23

preferences:
38.15 ms | 400 KiB | 5 Q