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);

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.130.0080.00018.50
8.3.120.0090.00018.88
8.3.110.0040.00718.50
8.3.100.0000.00916.57
8.3.90.0040.00426.77
8.3.80.0030.00617.97
8.3.70.0040.01118.55
8.3.60.0140.00718.68
8.3.50.0130.00621.92
8.3.40.0150.00018.77
8.3.30.0070.00718.87
8.3.20.0000.00820.07
8.3.10.0080.00021.75
8.3.00.0030.00619.38
8.2.250.0040.00418.36
8.2.240.0120.00617.04
8.2.230.0030.00620.94
8.2.220.0060.00324.06
8.2.210.0090.00926.77
8.2.200.0040.00416.75
8.2.190.0090.00616.63
8.2.180.0180.00325.92
8.2.170.0130.00719.08
8.2.160.0050.01019.03
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0040.00421.00
8.2.110.0050.00520.35
8.2.100.0040.00818.03
8.2.90.0040.00420.50
8.2.80.0050.00318.22
8.2.70.0050.00317.93
8.2.60.0080.00018.22
8.2.50.0090.00018.10
8.2.40.0080.00017.97
8.2.30.0000.00817.94
8.2.20.0070.00017.69
8.2.10.0040.00418.06
8.2.00.0040.00418.01
8.1.300.0040.01217.96
8.1.290.0120.00630.84
8.1.280.0150.00925.92
8.1.270.0100.00022.13
8.1.260.0050.00326.35
8.1.250.0110.00328.09
8.1.240.0030.00723.86
8.1.230.0030.00920.90
8.1.220.0080.00017.79
8.1.210.0070.00319.05
8.1.200.0030.00717.35
8.1.190.0030.00617.36
8.1.180.0080.00318.10
8.1.170.0000.00818.63
8.1.160.0040.00418.89
8.1.150.0030.00318.90
8.1.140.0020.00519.63
8.1.130.0000.00717.78
8.1.120.0050.00217.48
8.1.110.0080.00017.51
8.1.100.0070.00017.48
8.1.90.0070.00017.37
8.1.80.0070.00017.46
8.1.70.0030.00317.37
8.1.60.0040.00417.65
8.1.50.0030.00517.60
8.1.40.0040.00417.41
8.1.30.0040.00417.71
8.1.20.0060.00317.62
8.1.10.0040.00417.49
8.1.00.0060.00317.50
8.0.300.0040.00419.89
8.0.290.0100.00016.75
8.0.280.0030.00318.38
8.0.270.0070.00017.15
8.0.260.0000.00617.23
8.0.250.0000.00717.04
8.0.240.0000.00716.96
8.0.230.0030.00317.04
8.0.220.0080.00017.00
8.0.210.0020.00516.84
8.0.200.0030.00317.02
8.0.190.0040.00417.04
8.0.180.0040.00416.90
8.0.170.0050.00317.02
8.0.160.0030.00516.87
8.0.150.0040.00416.97
8.0.140.0120.00017.01
8.0.130.0030.00313.36
8.0.120.0030.00616.83
8.0.110.0040.00416.89
8.0.100.0040.00416.80
8.0.90.0000.00717.00
8.0.80.0100.00616.97
8.0.70.0000.00716.90
8.0.60.0070.00017.01
8.0.50.0000.00816.87
8.0.30.0100.00817.06
8.0.20.0110.01017.40
8.0.10.0040.00416.89
8.0.00.0030.01416.82
7.4.330.0000.00515.08
7.4.320.0020.00516.47
7.4.300.0060.00016.50
7.4.290.0050.00316.60
7.4.280.0040.00416.55
7.4.270.0030.00316.42
7.4.260.0030.00716.53
7.4.250.0030.00316.54
7.4.240.0000.00816.63
7.4.230.0080.00016.43
7.4.220.0030.01516.55
7.4.210.0110.00416.61
7.4.200.0000.00816.60
7.4.160.0060.01116.63
7.4.150.0060.01617.40
7.4.140.0130.00417.86
7.4.130.0110.01216.54
7.4.120.0100.01016.48
7.4.110.0000.01816.75
7.4.100.0030.01716.46
7.4.90.0070.01016.49
7.4.80.0100.01419.39
7.4.70.0090.00816.51
7.4.60.0070.01016.54
7.4.50.0110.00316.57
7.4.40.0060.01716.63
7.4.30.0080.00816.49
7.4.00.0070.00714.79
7.3.330.0000.00513.24
7.3.320.0060.00013.07
7.3.310.0050.00316.26
7.3.300.0000.00616.31
7.3.290.0000.00616.26
7.3.280.0080.00916.25
7.3.270.0130.00617.40
7.3.260.0080.01116.33
7.3.250.0120.00816.37
7.3.240.0110.01016.28
7.3.230.0100.00716.39
7.3.210.0100.01316.26
7.3.200.0090.00916.52
7.3.190.0070.01116.24
7.3.180.0100.00716.49
7.3.170.0090.00916.32
7.3.160.0060.01316.36
7.2.330.0110.00816.55
7.2.320.0090.00916.82
7.2.310.0100.01316.59
7.2.300.0070.01016.20
7.2.290.0070.01016.75
7.2.60.0220.00716.92
7.2.50.0080.00816.99
7.2.00.0040.00819.36
7.1.200.0000.00915.57
7.1.70.0000.00717.18
7.1.60.0070.00719.90
7.1.50.0110.00716.80
7.1.00.0000.07722.40
7.0.200.0000.00716.91
7.0.80.0250.06519.93
7.0.70.0130.06320.05
7.0.60.0270.04719.93
7.0.50.0270.04720.34
7.0.40.0270.06320.35
7.0.30.0200.06020.38
7.0.20.0170.06320.38
7.0.10.0330.04720.37
7.0.00.0330.04720.38
5.6.280.0030.07321.10
5.6.230.0130.06020.59
5.6.220.0100.06020.59
5.6.210.0100.06020.73
5.6.200.0270.04321.08
5.6.190.0200.05321.09
5.6.180.0230.04721.10
5.6.170.0170.05320.98
5.6.160.0100.06021.07
5.6.150.0100.05721.07
5.6.140.0170.05321.06
5.6.130.0230.05321.20
5.6.120.0100.06321.14
5.6.110.0070.06721.01
5.6.100.0130.05721.06
5.6.90.0070.06321.07
5.6.80.0170.05020.52
5.6.70.0170.05020.55
5.6.60.0070.06020.51
5.6.50.0130.05320.40
5.6.40.0170.05320.35
5.6.30.0030.06020.38
5.6.20.0100.05720.55
5.6.10.0170.05020.48
5.6.00.0230.04320.54
5.5.370.0100.06020.55
5.5.360.0200.05320.46
5.5.350.0070.06320.59
5.5.340.0130.05320.89
5.5.330.0100.06020.78
5.5.320.0070.06020.86
5.5.310.0100.06020.95
5.5.300.0130.06020.96
5.5.290.0100.06320.77
5.5.280.0200.05320.86
5.5.270.0100.06320.76
5.5.260.0130.06020.87
5.5.250.0130.06320.75
5.5.240.0030.06020.35
5.5.230.0130.06320.23
5.5.220.0100.05320.21
5.5.210.0170.05020.21
5.5.200.0130.05720.20
5.5.190.0230.06720.33
5.5.180.0130.06320.25
5.5.160.0130.06720.32
5.5.150.0130.05320.29
5.5.140.0170.05020.12
5.5.130.0030.06020.29
5.5.120.0170.04720.25
5.5.110.0130.05320.26
5.5.100.0070.06020.16
5.5.90.0100.05320.22
5.5.80.0100.05320.11
5.5.70.0230.04320.22
5.5.60.0170.05020.16
5.5.50.0100.05320.08
5.5.40.0130.05020.06
5.5.30.0100.05320.17
5.5.20.0070.05720.11
5.5.10.0130.05320.14
5.5.00.0030.06019.97

preferences:
29.84 ms | 403 KiB | 5 Q