3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = <<<'EOL' { "syndicate-to": [ { "uid": "https://myfavoritesocialnetwork.example/aaronpk", "name": "aaronpk on myfavoritesocialnetwork", "service": { "name": "My Favorite Social Network", "url": "https://myfavoritesocialnetwork.example/", "photo": "https://myfavoritesocialnetwork.example/img/icon.png" }, "user": { "name": "aaronpk", "url": "https://myfavoritesocialnetwork.example/aaronpk", "photo": "https://myfavoritesocialnetwork.example/aaronpk/photo.jpg" } } ] } EOL; $data = json_decode($json); var_dump($data); var_dump(json_last_error()); var_dump($data->{'syndicate-to'}[0]->uid);

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.20.0120.00917.80
8.4.10.0060.01017.59
8.3.150.0040.00419.02
8.3.140.0090.00918.43
8.3.130.0040.00416.49
8.3.120.0100.00318.69
8.3.110.0060.00316.74
8.3.100.0070.00324.06
8.3.90.0060.00326.77
8.3.80.0070.00317.97
8.3.70.0120.00618.31
8.3.60.0040.01818.43
8.3.50.0090.00921.99
8.3.40.0040.01118.75
8.3.30.0230.00018.67
8.3.20.0040.00420.16
8.3.10.0040.00421.77
8.3.00.0080.00019.26
8.2.270.0070.01017.14
8.2.260.0140.00318.96
8.2.250.0040.00416.91
8.2.240.0030.00617.45
8.2.230.0060.00320.94
8.2.220.0120.00037.54
8.2.210.0040.00426.77
8.2.200.0100.00018.25
8.2.190.0110.00716.82
8.2.180.0040.01116.75
8.2.170.0090.00622.96
8.2.160.0150.00019.21
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00819.77
8.2.110.0000.01020.96
8.2.100.0080.00417.72
8.2.90.0040.00418.03
8.2.80.0030.00619.76
8.2.70.0040.00418.05
8.2.60.0050.00317.93
8.2.50.0030.00618.10
8.2.40.0030.00619.17
8.2.30.0020.00521.30
8.2.20.0000.00717.64
8.2.10.0040.00418.16
8.2.00.0040.00418.09
8.1.310.0070.01116.80
8.1.300.0060.00316.58
8.1.290.0060.00330.84
8.1.280.0110.00725.92
8.1.270.0000.00923.60
8.1.260.0000.00826.35
8.1.250.0060.00928.09
8.1.240.0050.00520.82
8.1.230.0000.01122.11
8.1.220.0030.00517.77
8.1.210.0060.00318.77
8.1.200.0000.00817.35
8.1.190.0030.00617.00
8.1.180.0050.00218.10
8.1.170.0050.00318.67
8.1.160.0040.00418.88
8.1.150.0000.00818.50
8.1.140.0030.00619.39
8.1.130.0000.00717.70
8.1.120.0000.00817.40
8.1.110.0000.00717.41
8.1.100.0000.00717.40
8.1.90.0040.00417.34
8.1.80.0000.00717.41
8.1.70.0070.00017.30
8.1.60.0050.00217.60
8.1.50.0090.00017.45
8.1.40.0040.00417.43
8.1.30.0040.00417.64
8.1.20.0030.00517.51
8.1.10.0060.00317.56
8.1.00.0000.00717.40
8.0.300.0000.00720.04
8.0.290.0000.00916.63
8.0.280.0030.00318.35
8.0.270.0030.00317.12
8.0.260.0080.00017.20
8.0.250.0000.00716.96
8.0.240.0040.00416.85
8.0.230.0070.00016.83
8.0.220.0030.00316.90
8.0.210.0050.00216.81
8.0.200.0000.00616.83
8.0.190.0040.00416.93
8.0.180.0000.00716.84
8.0.170.0000.00716.94
8.0.160.0050.00216.91
8.0.150.0000.00716.82
8.0.140.0030.00616.91
8.0.130.0000.00613.38
8.0.120.0040.00416.85
8.0.110.0040.00416.92
8.0.100.0070.00016.94
8.0.90.0030.00516.96
8.0.80.0180.00316.86
8.0.70.0040.00416.94
8.0.60.0080.00016.84
8.0.50.0040.00416.93
8.0.30.0100.01217.12
8.0.20.0120.00717.40
8.0.10.0000.00816.97
8.0.00.0070.01716.62
7.4.330.0020.00215.14
7.4.320.0030.00316.53
7.4.300.0030.00316.47
7.4.290.0000.00716.45
7.4.280.0030.00616.63
7.4.270.0040.00416.67
7.4.260.0070.00316.40
7.4.250.0000.00716.49
7.4.240.0040.00316.63
7.4.230.0000.00716.27
7.4.220.0130.00616.58
7.4.210.0090.00716.55
7.4.200.0030.00316.45
7.4.160.0040.01216.42
7.4.150.0140.01017.40
7.4.140.0080.00917.86
7.4.130.0140.00616.47
7.4.120.0090.01016.65
7.4.110.0090.01216.49
7.4.100.0140.00316.48
7.4.90.0140.00316.57
7.4.80.0020.01619.39
7.4.70.0070.01016.63
7.4.60.0170.00316.59
7.4.50.0060.01016.50
7.4.40.0200.00216.29
7.4.30.0110.01116.63
7.4.00.0040.01214.98
7.3.330.0040.00213.18
7.3.320.0060.00013.14
7.3.310.0000.00716.19
7.3.300.0030.00316.25
7.3.290.0040.00416.30
7.3.280.0080.00716.31
7.3.270.0100.00717.40
7.3.260.0100.00716.40
7.3.250.0140.00516.45
7.3.240.0110.00816.49
7.3.230.0120.00316.49
7.3.210.0100.00716.32
7.3.200.0100.01316.54
7.3.190.0060.01016.27
7.3.180.0060.01616.39
7.3.170.0090.00916.32
7.3.160.0060.01116.21
7.3.120.0020.01614.83
7.3.110.0060.00914.62
7.3.100.0020.01414.78
7.3.90.0030.00914.88
7.3.80.0050.00914.44
7.3.70.0070.00514.59
7.3.60.0050.01114.73
7.3.50.0070.00714.62
7.3.40.0090.00614.83
7.3.30.0050.00814.60
7.3.20.0110.00416.51
7.3.10.0090.00516.46
7.3.00.0070.00816.58
7.2.330.0060.01216.41
7.2.320.0150.00916.66
7.2.310.0110.00816.73
7.2.300.0030.01316.63
7.2.290.0050.01416.31
7.2.250.0080.01115.14
7.2.240.0080.00714.70
7.2.230.0040.01214.92
7.2.220.0100.00514.67
7.2.210.0050.01114.82
7.2.200.0080.00814.98
7.2.190.0080.00514.77
7.2.180.0030.01114.74
7.2.170.0100.00614.90
7.2.160.0000.01114.84
7.2.150.0040.01116.95
7.2.140.0060.01016.64
7.2.130.0070.01116.72
7.2.120.0080.01016.64
7.2.110.0170.01316.61
7.2.100.0130.00916.68
7.2.90.0090.01116.60
7.2.80.0090.01116.65
7.2.70.0170.00416.78
7.2.60.0160.00716.66
7.2.50.0110.00716.78
7.2.40.0200.00816.86
7.2.30.0200.00816.79
7.2.20.0160.00817.02
7.2.10.0080.00916.85
7.2.00.0070.01017.52
7.1.330.0080.00715.71
7.1.320.0060.01015.54
7.1.310.0060.00415.71
7.1.300.0050.00615.81
7.1.290.0100.00615.59
7.1.280.0040.00915.65
7.1.270.0100.00615.73
7.1.260.0050.00815.77
7.1.250.0030.01015.68
7.1.240.0260.00215.71
7.1.230.0070.01115.61
7.1.220.0230.00015.54
7.1.210.0240.00015.58
7.1.200.0110.00915.56
7.1.190.0140.01015.68
7.1.180.0140.00415.60
7.1.170.0280.00715.74
7.1.160.0360.00015.87
7.1.150.0240.00815.96
7.1.140.0270.00715.77
7.1.130.0250.00715.77
7.1.120.0200.01015.58
7.1.110.0220.01115.63
7.1.100.0270.00415.65
7.1.90.0740.00715.76
7.1.80.0230.00915.60
7.1.70.0160.00916.48
7.1.60.0120.00517.85
7.1.50.0260.00516.17
7.1.40.0250.00615.84
7.1.30.0370.00015.68
7.1.20.0180.00015.45
7.1.10.0240.00315.68
7.1.00.0210.04119.01
7.0.320.0200.00315.22
7.0.310.0090.01215.29
7.0.300.0070.00715.24
7.0.290.0130.00415.34
7.0.280.0280.00415.39
7.0.270.0270.00715.35
7.0.260.0340.00015.30
7.0.250.0260.00315.17
7.0.240.0120.00615.14
7.0.230.0080.01015.45
7.0.220.0060.00915.20
7.0.210.0210.00315.32
7.0.200.0120.00816.00
7.0.190.0200.01215.37
7.0.180.0190.00615.41
7.0.170.0270.00315.43
7.0.160.0390.00315.32
7.0.150.0250.00615.46
7.0.140.0230.00315.22
7.0.130.0170.01115.56
7.0.120.0420.00015.49
7.0.110.0220.00315.27
7.0.100.0280.00015.14
7.0.90.0300.00415.54
7.0.80.0250.03017.75
7.0.70.0230.03317.70
7.0.60.0180.03317.69
7.0.50.0270.02817.66
7.0.40.0160.04116.93
7.0.30.0160.03216.79
7.0.20.0190.02816.92
7.0.10.0150.03316.86
7.0.00.0140.03316.83
5.6.380.0120.00613.81
5.6.370.0160.01014.29
5.6.360.0120.00414.17
5.6.350.0140.00713.86
5.6.340.0100.00314.22
5.6.330.0070.01113.93
5.6.320.0090.00914.14
5.6.310.0080.00814.14
5.6.300.0150.00014.04
5.6.290.0160.00014.25
5.6.280.0030.04217.58
5.6.270.0130.00314.25
5.6.260.0110.00514.22
5.6.250.0050.00814.34
5.6.240.0160.00314.34
5.6.230.0080.03617.39
5.6.220.0100.03317.39
5.6.210.0140.02717.55
5.6.200.0130.03317.63
5.6.190.0090.03717.67
5.6.180.0090.03217.61
5.6.170.0120.03217.67
5.6.160.0120.03217.79
5.6.150.0130.03017.69
5.6.140.0050.03717.57
5.6.130.0130.03217.52
5.6.120.0150.02917.66
5.6.110.0100.03317.68
5.6.100.0140.03017.61
5.6.90.0130.03117.65
5.6.80.0110.03317.22
5.6.70.0180.02317.26
5.6.60.0130.02917.18
5.6.50.0110.03317.49
5.6.40.0160.02617.24
5.6.30.0130.02817.26
5.6.20.0100.03317.28
5.6.10.0080.03317.21
5.6.00.0130.02817.30
5.5.380.0110.00511.10
5.5.370.0120.02615.73
5.5.360.0130.02815.85
5.5.350.0090.03315.71
5.5.340.0130.02815.95
5.5.330.0180.02815.87
5.5.320.0110.03215.93
5.5.310.0180.03516.00
5.5.300.0130.02716.07
5.5.290.0130.03015.99
5.5.280.0160.02715.93
5.5.270.0150.02815.89
5.5.260.0180.02416.00
5.5.250.0100.03215.80
5.5.240.0040.03415.69
5.5.230.0110.02815.62
5.5.220.0140.02615.62
5.5.210.0060.03315.59
5.5.200.0090.03115.61
5.5.190.0110.03015.61
5.5.180.0120.02815.67
5.5.170.0120.00414.11
5.5.160.0070.03115.49
5.5.150.0130.02515.61
5.5.140.0120.02715.60
5.5.130.0090.02815.59
5.5.120.0050.03815.61
5.5.110.0090.03415.59
5.5.100.0120.02815.46
5.5.90.0150.02215.56
5.5.80.0100.02815.51
5.5.70.0030.03615.55
5.5.60.0090.02915.55
5.5.50.0120.02715.58
5.5.40.0080.03015.54
5.5.30.0070.03315.48
5.5.20.0140.02515.55
5.5.10.0110.03115.58
5.5.00.0130.02715.45

preferences:
32.54 ms | 403 KiB | 5 Q