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, true); 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.0180.00317.75
8.4.10.0080.01117.83
8.3.150.0150.00416.59
8.3.140.0150.00316.61
8.3.130.0100.01018.34
8.3.120.0030.00718.89
8.3.110.0130.00320.94
8.3.100.0030.00624.06
8.3.90.0070.00026.77
8.3.80.0000.00918.18
8.3.70.0040.01118.16
8.3.60.0100.01018.43
8.3.50.0100.00821.99
8.3.40.0110.00418.67
8.3.30.0100.01018.84
8.3.20.0050.00220.33
8.3.10.0040.00421.78
8.3.00.0030.00519.38
8.2.270.0150.00017.39
8.2.260.0090.00617.50
8.2.250.0060.01218.31
8.2.240.0060.00319.05
8.2.230.0080.00022.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0000.00918.54
8.2.190.0090.00617.97
8.2.180.0090.00616.63
8.2.170.0040.01122.96
8.2.160.0100.00720.22
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0050.00226.16
8.2.120.0040.00421.07
8.2.110.0070.00319.33
8.2.100.0040.00818.04
8.2.90.0000.00919.08
8.2.80.0080.00017.97
8.2.70.0090.00017.63
8.2.60.0040.00417.68
8.2.50.0000.00818.10
8.2.40.0040.00422.31
8.2.30.0040.00419.14
8.2.20.0070.00017.75
8.2.10.0060.00317.95
8.2.00.0020.00518.17
8.1.310.0120.00616.72
8.1.300.0110.00718.08
8.1.290.0040.00418.88
8.1.280.0060.01025.92
8.1.270.0080.00023.96
8.1.260.0040.00426.35
8.1.250.0030.01028.09
8.1.240.0050.00519.13
8.1.230.0060.00617.71
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0030.00517.23
8.1.180.0000.00818.10
8.1.170.0050.00318.46
8.1.160.0000.00720.96
8.1.150.0040.00418.71
8.1.140.0070.00019.43
8.1.130.0000.00717.68
8.1.120.0020.00517.31
8.1.110.0000.00717.40
8.1.100.0040.00417.33
8.1.90.0040.00417.31
8.1.80.0040.00417.39
8.1.70.0030.00317.40
8.1.60.0030.00617.41
8.1.50.0050.00317.48
8.1.40.0040.00417.39
8.1.30.0030.00517.64
8.1.20.0000.00817.70
8.1.10.0040.00417.53
8.1.00.0030.00517.37
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.38
8.0.270.0050.00216.89
8.0.260.0000.00717.17
8.0.250.0030.00316.96
8.0.240.0030.00317.03
8.0.230.0000.00716.98
8.0.220.0000.00716.91
8.0.210.0040.00416.84
8.0.200.0030.00317.00
8.0.190.0000.00716.95
8.0.180.0040.00416.96
8.0.170.0040.00416.95
8.0.160.0000.00716.88
8.0.150.0000.00716.85
8.0.140.0060.00316.80
8.0.130.0050.00013.37
8.0.120.0030.00516.82
8.0.110.0000.00816.88
8.0.100.0000.00716.78
8.0.90.0000.00716.73
8.0.80.0040.01116.89
8.0.70.0040.00416.96
8.0.60.0040.00416.86
8.0.50.0000.00716.79
8.0.30.0120.00716.95
8.0.20.0140.00717.40
8.0.10.0050.00316.97
8.0.00.0140.00516.66
7.4.330.0000.00515.08
7.4.320.0070.00016.38
7.4.300.0000.00716.38
7.4.290.0000.00716.44
7.4.280.0080.00016.59
7.4.270.0040.00216.57
7.4.260.0000.01016.35
7.4.250.0000.00716.43
7.4.240.0000.00716.55
7.4.230.0040.00416.45
7.4.220.0140.00316.65
7.4.210.0070.01116.61
7.4.200.0030.00316.49
7.4.150.0060.01417.40
7.4.140.0110.00617.86
7.4.130.0070.01016.35
7.4.120.0100.00816.54
7.4.110.0030.01416.45
7.4.100.0160.00416.59
7.4.90.0070.01016.51
7.4.80.0100.00719.39
7.4.70.0070.01016.58
7.4.60.0150.00316.35
7.4.50.0030.01316.62
7.4.40.0080.01016.55
7.4.30.0070.01016.65
7.4.00.0100.00714.73
7.3.330.0000.00613.14
7.3.320.0060.00013.02
7.3.310.0070.00016.26
7.3.300.0000.00616.28
7.3.290.0030.00316.32
7.3.280.0110.00716.36
7.3.270.0070.01117.40
7.3.260.0050.01116.29
7.3.250.0080.01416.38
7.3.240.0140.00916.33
7.3.230.0100.00616.43
7.3.210.0110.00716.68
7.3.200.0140.00716.25
7.3.190.0130.00316.37
7.3.180.0030.01416.16
7.3.170.0130.00416.42
7.3.160.0110.00716.44
7.3.120.0100.00714.70
7.3.110.0070.01014.85
7.3.100.0070.00714.84
7.3.90.0000.01414.85
7.3.80.0080.00414.48
7.3.70.0060.00614.78
7.3.60.0100.00014.87
7.3.50.0100.00714.79
7.3.40.0000.01214.61
7.3.30.0040.00814.62
7.3.20.0070.00716.68
7.3.10.0000.01216.76
7.3.00.0030.01016.36
7.2.330.0120.00916.34
7.2.320.0130.00616.38
7.2.310.0050.01316.38
7.2.300.0050.01116.43
7.2.290.0090.01216.68
7.2.240.0030.00715.12
7.2.230.0060.00314.67
7.2.220.0080.00415.22
7.2.210.0040.00714.73
7.2.200.0070.00714.67
7.2.190.0000.01614.89
7.2.180.0030.01214.88
7.2.170.0030.01014.92
7.2.160.0080.00514.91
7.2.150.0030.00616.96
7.2.140.0110.00416.84
7.2.130.0030.01016.81
7.2.120.0040.00716.81
7.2.110.0080.00716.64
7.2.100.0070.00616.55
7.2.90.0040.00716.79
7.2.80.0060.00716.66
7.2.70.0070.00516.93
7.2.60.0060.00816.79
7.2.50.0100.00316.73
7.2.40.0070.00816.90
7.2.30.0050.01116.82
7.2.20.0020.01116.83
7.2.10.0030.00816.76
7.2.00.0080.00417.64
7.1.330.0070.00715.69
7.1.320.0040.01115.85
7.1.310.0130.00015.70
7.1.300.0030.00615.89
7.1.290.0000.01315.62
7.1.280.0000.01215.62
7.1.270.0080.00015.55
7.1.260.0000.00815.78
7.1.250.0040.00815.84
7.1.230.0040.01115.90
7.1.220.0040.01115.86
7.1.210.0050.00515.80
7.1.200.0070.00715.87
7.1.190.0030.00615.52
7.1.180.0030.00815.79
7.1.170.0060.00615.83
7.1.160.0100.00315.61
7.1.150.0060.00615.96
7.1.140.0070.00315.77
7.1.130.0070.00715.70
7.1.120.0080.00415.78
7.1.110.0090.00015.71
7.1.100.0000.01415.84
7.1.90.0030.00515.80
7.1.80.0060.00915.87
7.1.70.0020.00716.39
7.1.60.0120.00217.89
7.1.50.0060.01015.91
7.1.40.0060.00916.03
7.1.30.0070.00715.56
7.1.20.0110.00715.61
7.1.10.0040.01115.70
7.1.00.0040.04219.00
7.0.310.0040.00815.33
7.0.300.0000.01515.41
7.0.290.0000.01315.53
7.0.280.0030.01015.13
7.0.270.0080.00415.24
7.0.260.0090.00615.31
7.0.250.0090.00615.38
7.0.240.0070.00715.54
7.0.230.0080.00415.11
7.0.220.0030.00615.04
7.0.210.0030.00915.09
7.0.200.0020.00815.91
7.0.190.0060.00915.21
7.0.180.0070.00715.32
7.0.170.0100.00315.24
7.0.160.0060.00615.25
7.0.150.0000.01415.43
7.0.140.0090.00615.36
7.0.130.0030.01015.49
7.0.120.0060.01015.49
7.0.110.0110.00015.25
7.0.100.0100.00315.50
7.0.90.0040.00815.51
7.0.80.0120.03317.68
7.0.70.0150.02817.54
7.0.60.0110.03117.45
7.0.50.0110.03517.96
7.0.40.0110.03016.84
7.0.30.0210.02516.83
7.0.20.0070.03916.84
7.0.10.0150.02916.89
7.0.00.0130.03316.89
5.6.380.0070.00714.38
5.6.370.0110.00014.37
5.6.360.0030.01014.41
5.6.350.0100.00314.35
5.6.340.0040.00414.29
5.6.330.0060.00614.25
5.6.320.0080.00813.86
5.6.310.0070.00314.57
5.6.300.0030.01013.87
5.6.290.0100.00314.27
5.6.280.0070.03917.82
5.6.270.0090.00614.51
5.6.260.0040.01114.40
5.6.250.0080.00414.41
5.6.240.0100.00614.28
5.6.230.0080.03617.44
5.6.220.0050.03417.43
5.6.210.0060.03317.46
5.6.200.0100.03317.63
5.6.190.0100.02917.68
5.6.180.0060.03517.78
5.6.170.0050.03717.70
5.6.160.0070.03417.55
5.6.150.0130.02817.82
5.6.140.0080.03317.61
5.6.130.0030.03717.60
5.6.120.0060.03617.68
5.6.110.0070.03617.63
5.6.100.0150.02517.70
5.6.90.0070.03517.58
5.6.80.0100.03217.22
5.6.70.0050.03317.49
5.6.60.0120.02917.54
5.6.50.0070.03417.33
5.6.40.0090.02917.39
5.6.30.0080.03017.33
5.6.20.0050.03517.33
5.6.10.0080.03217.26
5.6.00.0030.03317.30
5.5.380.0040.00812.79
5.5.370.0080.03216.65
5.5.360.0100.03016.66
5.5.350.0070.03416.60
5.5.340.0100.03216.82
5.5.330.0060.03416.82
5.5.320.0040.03216.82
5.5.310.0100.03016.88
5.5.300.0080.02816.88
5.5.290.0090.03216.75
5.5.280.0120.03016.88
5.5.270.0080.03416.83
5.5.260.0100.03316.85
5.5.250.0060.03016.76
5.5.240.0080.02816.56
5.5.230.0130.03016.49
5.5.220.0050.03216.54
5.5.210.0120.02716.54
5.5.200.0080.03216.55
5.5.190.0110.02816.53
5.5.180.0120.02816.52
5.5.170.0080.00413.98
5.5.160.0090.03316.53
5.5.150.0130.02616.55
5.5.140.0100.02716.54
5.5.130.0120.02516.51
5.5.120.0070.03216.48
5.5.110.0050.03516.54
5.5.100.0110.02816.49
5.5.90.0120.02516.49
5.5.80.0120.02516.43
5.5.70.0030.03416.44
5.5.60.0090.02816.38
5.5.50.0070.03216.44
5.5.40.0030.03116.47
5.5.30.0080.02916.50
5.5.20.0080.03216.49
5.5.10.0110.02516.49
5.5.00.0070.03516.47

preferences:
35.32 ms | 403 KiB | 5 Q