3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jsonString = <<<'EOT' { "result":[ { "type":"Residence", "street":"Piazza di Spagna", "city":"-4:0" }, { "type":"Residence", "street":"test", "city":"-4:1" } ] } EOT; $nodeNames = array_keys(json_decode($jsonString, true)['result'][0]); print_r($nodeNames);

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.130.0110.00817.77
8.4.120.0150.00522.16
8.4.110.0140.00622.39
8.4.100.0120.00917.71
8.4.90.0140.00520.35
8.4.80.0080.00518.50
8.4.70.0120.00720.74
8.4.60.0120.00718.84
8.4.50.0060.01020.16
8.4.40.0090.00019.41
8.4.30.0120.00620.49
8.4.20.0080.00817.61
8.4.10.0060.00323.98
8.3.260.0110.00716.68
8.3.250.0110.00718.91
8.3.240.0110.00316.54
8.3.230.0100.00916.67
8.3.220.0040.00418.95
8.3.210.0040.00416.55
8.3.200.0080.00116.54
8.3.190.0070.00217.28
8.3.180.0090.00918.75
8.3.170.0130.00620.78
8.3.160.0100.00716.81
8.3.150.0110.00717.17
8.3.140.0150.00316.30
8.3.130.0080.00018.48
8.3.120.0080.00818.98
8.3.110.0090.00320.94
8.3.100.0030.00524.06
8.3.90.0040.00426.77
8.3.80.0090.00018.43
8.3.70.0110.00416.50
8.3.60.0070.01018.18
8.3.50.0070.01116.48
8.3.40.0070.00723.79
8.3.30.0140.00018.50
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.290.0110.00816.82
8.2.280.0110.00819.96
8.2.270.0110.00717.29
8.2.260.0130.00618.43
8.2.250.0000.00816.57
8.2.240.0060.00318.78
8.2.230.0090.00022.58
8.2.220.0090.00037.54
8.2.210.0080.00026.77
8.2.200.0060.00318.22
8.2.190.0040.01116.58
8.2.180.0180.00616.63
8.2.170.0140.00718.96
8.2.160.0000.01322.96
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00019.89
8.2.110.0070.00322.25
8.2.100.0000.01217.91
8.2.90.0060.00317.75
8.2.80.0030.00518.66
8.2.70.0050.00317.63
8.2.60.0050.00317.63
8.2.50.0080.00017.50
8.2.40.0040.00419.35
8.2.30.0080.00317.67
8.2.20.0050.00517.70
8.2.10.0000.01417.66
8.2.00.0120.00417.67
8.1.330.0100.00916.13
8.1.320.0100.01016.31
8.1.310.0100.00016.54
8.1.300.0120.00317.98
8.1.290.0030.00630.84
8.1.280.0070.01325.92
8.1.270.0020.00524.66
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0040.00420.67
8.1.230.0110.00017.89
8.1.220.0070.00017.74
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0000.00817.00
8.1.180.0030.00518.10
8.1.170.0080.00017.62
8.1.160.0050.00517.31
8.1.150.0150.00317.29
8.1.140.0160.00017.28
8.1.130.0100.00517.41
8.1.120.0080.00617.47
8.1.110.0110.00517.49
8.1.100.0110.00417.44
8.1.90.0100.00517.44
8.1.80.0080.00817.45
8.1.70.0080.00817.32
8.1.60.0100.01017.61
8.1.50.0120.00917.55
8.1.40.0150.00417.63
8.1.30.0120.00717.61
8.1.20.0110.00917.47
8.1.10.0100.00717.43
8.1.00.0120.00617.41
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0110.00416.80
8.0.270.0120.00316.73
8.0.260.0150.00016.81
8.0.250.0080.00816.85
8.0.240.0100.00516.92
8.0.230.0110.00316.77
8.0.220.0130.00016.75
8.0.210.0100.00316.80
8.0.200.0070.00716.84
8.0.190.0040.00916.80
8.0.180.0110.00616.86
8.0.170.0140.00316.87
8.0.160.0110.00416.91
8.0.150.0080.00816.75
8.0.140.0110.00416.81
8.0.130.0120.00316.73
8.0.120.0120.00216.74
8.0.110.0110.00416.86
8.0.100.0050.01116.82
8.0.90.0090.00616.85
8.0.80.0080.00816.79
8.0.70.0120.00416.79
8.0.60.0150.00016.86
8.0.50.0000.01316.73
8.0.30.0060.00616.79
8.0.20.0110.00416.73
8.0.10.0090.00516.87

preferences:
68.59 ms | 403 KiB | 5 Q