3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = <<<JSON {"g_aaa77": {"'title'":"title2", "'r_a6cff'": {"name":"name2","price":"2"}, "'r_7fc7b'": {"name":"name22","price":"22"} }, "g_a36b5": {"title":"title1", "r_4e122": {"name":"name1","price":"1"}, "r_155fa": {"name":"name11","price":"11"} } } JSON; $array = json_decode($json, true); print_r($array); $array = array_values($array); print_r($array); echo $array[1]['title'];

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.4.10.0030.00617.71
8.3.140.0090.00917.04
8.3.130.0040.00418.37
8.3.120.0120.00618.65
8.3.110.0120.00320.94
8.3.100.0040.00424.06
8.3.90.0090.00918.07
8.3.80.0030.00617.97
8.3.70.0150.00016.38
8.3.60.0100.01018.56
8.3.50.0080.01022.79
8.3.40.0070.01018.98
8.3.30.0110.00618.84
8.3.20.0040.00420.39
8.3.10.0040.00421.91
8.3.00.0040.00420.89
8.2.260.0040.01518.38
8.2.250.0030.00617.23
8.2.240.0040.00417.07
8.2.230.0050.00522.58
8.2.220.0100.00037.54
8.2.210.0070.00026.77
8.2.200.0060.00318.29
8.2.190.0090.00616.58
8.2.180.0060.01618.42
8.2.170.0120.00322.96
8.2.160.0140.00019.16
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0050.00220.32
8.2.120.0070.00026.35
8.2.110.0070.00419.45
8.2.100.0070.00417.78
8.2.90.0040.00419.30
8.2.80.0030.00517.97
8.2.70.0000.00817.50
8.2.60.0050.00318.03
8.2.50.0000.00818.34
8.2.40.0030.00520.45
8.2.30.0040.00418.01
8.2.20.0000.00717.67
8.2.10.0040.00418.02
8.2.00.0000.00717.98
8.1.310.0030.00518.43
8.1.300.0150.00319.75
8.1.290.0030.00618.88
8.1.280.0070.00725.92
8.1.270.0000.00724.66
8.1.260.0050.00228.09
8.1.250.0040.00428.09
8.1.240.0090.00019.28
8.1.230.0040.00817.89
8.1.220.0070.00017.74
8.1.210.0030.00518.77
8.1.200.0030.00617.22
8.1.190.0030.00617.22
8.1.180.0000.00818.10
8.1.170.0030.00518.59
8.1.160.0040.00418.87
8.1.150.0050.00318.88
8.1.140.0040.00419.55
8.1.130.0030.00318.82
8.1.120.0040.00317.31
8.1.110.0000.01117.44
8.1.100.0000.00717.44
8.1.90.0080.00017.35
8.1.80.0040.00417.38
8.1.70.0000.00717.32
8.1.60.0030.00717.46
8.1.50.0040.00417.47
8.1.40.0040.00417.48
8.1.30.0080.00017.59
8.1.20.0000.00817.52
8.1.10.0040.00417.59
8.1.00.0030.00517.54
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00818.35
8.0.270.0030.00317.25
8.0.260.0050.00318.43
8.0.250.0000.00716.93
8.0.240.0040.00417.05
8.0.230.0000.00716.98
8.0.220.0030.00316.94
8.0.210.0060.00316.93
8.0.200.0000.00617.00
8.0.190.0040.00416.92
8.0.180.0030.00516.84
8.0.170.0000.00916.90
8.0.160.0000.00716.84
8.0.150.0040.00416.72
8.0.140.0030.00716.73
8.0.130.0030.00613.31
8.0.120.0000.00816.79
8.0.110.0030.00516.89
8.0.100.0080.00016.78
8.0.90.0040.00416.68
8.0.80.0090.00616.86
8.0.70.0050.00316.71
8.0.60.0000.00716.88
8.0.50.0000.00716.92
8.0.30.0110.01017.01
8.0.20.0100.00917.40
8.0.10.0040.00416.97
8.0.00.0110.00816.62
7.4.330.0000.00815.08
7.4.320.0030.00316.43
7.4.300.0000.00616.43
7.4.290.0030.00316.48
7.4.280.0000.00716.28
7.4.270.0080.00016.35
7.4.260.0000.00716.53
7.4.250.0070.00016.54
7.4.240.0030.00316.44
7.4.230.0060.00016.43
7.4.220.0100.01016.63
7.4.210.0060.00816.50
7.4.200.0060.00016.54
7.4.160.0130.00316.38
7.4.150.0100.00617.40
7.4.140.0120.01017.86
7.4.130.0110.01116.44
7.4.120.0090.01116.68
7.4.110.0100.00716.41
7.4.100.0100.01016.63
7.4.90.0130.00316.37
7.4.80.0060.01119.39
7.4.70.0100.00716.61
7.4.60.0110.01116.48
7.4.50.0060.00916.41
7.4.40.0070.01016.38
7.4.30.0150.01116.42
7.4.10.0090.00914.98
7.4.00.0040.01114.83
7.3.330.0040.00413.02
7.3.320.0070.00013.17
7.3.310.0000.00716.31
7.3.300.0070.00016.12
7.3.290.0030.00316.38
7.3.280.0110.00716.30
7.3.270.0070.01117.40
7.3.260.0110.00716.33
7.3.250.0110.00916.42
7.3.240.0130.00616.48
7.3.230.0060.01016.39
7.3.210.0070.01416.44
7.3.200.0070.01416.51
7.3.190.0090.00916.21
7.3.180.0070.01016.32
7.3.170.0090.00616.31
7.3.160.0030.02116.37
7.3.130.0090.00614.71
7.3.120.0070.01114.58
7.3.110.0100.00614.79
7.3.100.0030.01314.64
7.3.90.0080.00514.72
7.3.80.0060.00814.74
7.3.70.0090.00214.75
7.3.60.0030.00914.55
7.3.50.0080.00514.83
7.3.40.0090.00114.72
7.3.30.0070.00514.57
7.3.20.0080.00616.65
7.3.10.0050.00716.72
7.3.00.0050.01016.50
7.2.330.0070.01116.72
7.2.320.0150.01616.74
7.2.310.0090.00816.21
7.2.300.0080.00816.32
7.2.290.0070.01016.31
7.2.260.0070.01115.27
7.2.250.0100.00914.90
7.2.240.0100.00714.83
7.2.230.0050.01115.21
7.2.220.0030.00815.07
7.2.210.0060.00615.09
7.2.200.0060.00615.02
7.2.190.0040.00914.90
7.2.180.0080.00714.74
7.2.170.0070.00415.04
7.2.160.0110.00014.98
7.2.150.0000.01716.95
7.2.140.0030.01016.63
7.2.130.0000.01317.03
7.2.120.0060.01016.90
7.2.110.0070.00716.92
7.2.100.0090.00416.89
7.2.90.0070.01016.47
7.2.80.0030.01416.46
7.2.70.0000.01016.97
7.2.60.0040.00816.98
7.2.50.0060.00616.80
7.2.40.0030.01017.07
7.2.30.0040.01116.68
7.2.20.0090.00016.58
7.2.10.0030.01016.79
7.2.00.0050.01117.99
7.1.330.0070.00815.63
7.1.320.0110.00315.85
7.1.310.0040.00615.51
7.1.300.0050.00715.75
7.1.290.0050.00715.70
7.1.280.0050.00515.62
7.1.270.0050.00615.82
7.1.260.0020.01015.82
7.1.250.0060.00615.84
7.1.240.0060.00316.04
7.1.230.0040.00715.73
7.1.220.0070.00415.46
7.1.210.0030.00615.50
7.1.200.0120.00715.55
7.1.190.0030.01015.71
7.1.180.0030.01215.87
7.1.170.0000.01415.79
7.1.160.0040.00815.68
7.1.150.0070.00715.81
7.1.140.0070.00615.77
7.1.130.0040.00915.82
7.1.120.0060.00615.40
7.1.110.0040.01115.84
7.1.100.0030.00915.87
7.1.90.0030.01315.88
7.1.80.0070.01015.60
7.1.70.0040.00816.41
7.1.60.0020.01617.94
7.1.50.0110.00415.93
7.1.40.0120.00415.67
7.1.30.0090.00915.80
7.1.20.0040.01315.94
7.1.10.0060.01215.68
7.1.00.0030.04518.99
7.0.330.0040.01115.47
7.0.320.0030.01215.32
7.0.310.0060.00615.32
7.0.300.0120.00615.26
7.0.290.0000.00915.34
7.0.280.0030.00615.42
7.0.270.0090.00615.53
7.0.260.0090.00615.28
7.0.250.0110.00015.14
7.0.240.0090.00615.39
7.0.230.0030.00815.55
7.0.220.0100.00015.31
7.0.210.0070.00415.38
7.0.200.0070.00914.86
7.0.190.0030.01015.39
7.0.180.0090.00615.13
7.0.170.0030.01015.36
7.0.160.0080.00315.09
7.0.150.0040.01415.38
7.0.140.0070.00715.59
7.0.130.0090.00615.31
7.0.120.0130.00315.47
7.0.110.0030.01315.55
7.0.100.0030.01515.27
7.0.90.0060.01015.35
7.0.80.0000.01415.30
7.0.70.0080.04217.74
7.0.60.0190.03417.51
7.0.50.0200.02717.91
7.0.40.0270.03916.77
7.0.30.0120.03516.97
7.0.20.0180.03016.83
7.0.10.0190.02716.81
7.0.00.0100.03416.77
5.6.400.0070.00714.32
5.6.390.0120.00014.32
5.6.380.0090.00614.59
5.6.370.0060.01014.15
5.6.360.0040.00814.22
5.6.350.0090.00614.22
5.6.340.0070.00714.46
5.6.330.0000.01514.34
5.6.320.0030.01014.30
5.6.310.0120.00314.71
5.6.300.0100.00614.54
5.6.290.0150.00014.46
5.6.280.0080.03817.64
5.6.270.0060.00614.02
5.6.260.0090.00614.50
5.6.250.0030.01314.67
5.6.240.0070.00714.47
5.6.230.0000.01214.11
5.6.220.0200.03517.37
5.6.210.0120.03717.58
5.6.200.0230.03617.70
5.6.190.0150.03817.63
5.6.180.0180.03017.64
5.6.170.0180.02817.65
5.6.160.0160.03117.61
5.6.150.0120.04917.69
5.6.140.0120.03617.75
5.6.130.0130.03217.66
5.6.120.0110.03817.71
5.6.110.0100.03417.63
5.6.100.0100.03617.70
5.6.90.0150.04017.71
5.6.80.0130.03017.49
5.6.70.0150.03317.26
5.6.60.0120.03517.28
5.6.50.0120.03017.54
5.6.40.0030.03817.34
5.6.30.0170.02717.34
5.6.20.0130.02817.36
5.6.10.0120.03217.33
5.6.00.0180.02817.40
5.5.380.0030.00614.06
5.5.370.0120.00614.31
5.5.360.0140.03417.21
5.5.350.0070.04617.42
5.5.340.0080.03817.56
5.5.330.0300.02817.61
5.5.320.0110.03617.69
5.5.310.0120.03417.34
5.5.300.0070.03617.45
5.5.290.0080.03717.51
5.5.280.0100.03417.60
5.5.270.0110.03417.54
5.5.260.0130.03517.45
5.5.250.0080.03517.42
5.5.240.0090.03317.23
5.5.230.0100.03717.04
5.5.220.0070.03917.28
5.5.210.0070.03617.07
5.5.200.0180.02817.40
5.5.190.0110.03317.21
5.5.180.0160.03617.06
5.5.170.0030.01514.06
5.5.160.0130.03217.32
5.5.150.0140.02717.14
5.5.140.0100.03217.24
5.5.130.0140.03117.09
5.5.120.0100.03417.04
5.5.110.0170.03217.12
5.5.100.0130.03316.94
5.5.90.0130.03017.11
5.5.80.0070.03817.03
5.5.70.0130.03217.13
5.5.60.0150.02817.10
5.5.50.0170.03216.96
5.5.40.0120.03717.07
5.5.30.0160.03817.14
5.5.20.0200.03016.96
5.5.10.0220.03017.02
5.5.00.0230.03117.02

preferences:
28.46 ms | 403 KiB | 5 Q