3v4l.org

run code in 300+ PHP versions simultaneously
<?php const NL = PHP_EOL; $json = rtrim('{ "access_token": "ya29.Il-4B7Tpewa", "token_type": "Bearer", "expires_in": 3600, "refresh_token": "1//09ghRt", "scope": "https://www.googleapis.com/auth/fitness.location.read https://www.googleapis.com/auth/fitness.activity.read" } 1', ' 1'); $jsonObj = json_decode($json); echo $jsonObj->access_token; echo NL; echo $jsonObj->refresh_token; echo NL; echo $jsonObj->expires_in; echo NL; $jsonArr = json_decode($json, true); echo $jsonArr['access_token']; echo NL; echo $jsonArr['refresh_token']; echo NL; echo $jsonArr['expires_in'];

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.60.0040.01118.18
8.3.50.0030.01016.42
8.3.40.0100.00718.79
8.3.30.0120.00318.63
8.3.20.0030.00520.73
8.3.10.0040.00422.05
8.3.00.0000.00721.95
8.2.180.0190.00025.92
8.2.170.0100.01018.91
8.2.160.0120.00322.96
8.2.150.0040.00425.66
8.2.140.0050.00524.66
8.2.130.0070.00026.16
8.2.120.0080.00026.16
8.2.110.0060.00320.35
8.2.100.0060.00617.91
8.2.90.0040.00417.75
8.2.80.0040.00418.91
8.2.70.0040.00417.63
8.2.60.0030.00617.63
8.2.50.0040.00418.05
8.2.40.0030.00518.22
8.2.30.0040.00418.02
8.2.20.0000.00718.00
8.2.10.0000.00719.23
8.2.00.0030.00519.20
8.1.280.0090.00625.92
8.1.270.0090.00923.78
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00319.06
8.1.230.0120.00017.89
8.1.220.0080.00017.78
8.1.210.0000.00818.77
8.1.200.0040.00417.36
8.1.190.0040.00417.35
8.1.180.0030.00618.10
8.1.170.0040.00417.62
8.1.160.0030.00519.00
8.1.150.0000.00719.04
8.1.140.0040.00420.73
8.1.130.0030.00320.19
8.1.120.0030.00617.38
8.1.110.0030.00617.36
8.1.100.0030.00517.46
8.1.90.0000.00717.48
8.1.80.0030.00517.49
8.1.70.0000.00717.36
8.1.60.0060.00317.65
8.1.50.0070.00717.48
8.1.40.0030.00517.50
8.1.30.0040.00417.56
8.1.20.0000.00817.56
8.1.10.0040.00417.55
8.1.00.0040.00417.53
8.0.300.0000.00818.77
8.0.290.0090.00016.63
8.0.280.0000.00818.46
8.0.270.0040.00418.02
8.0.260.0050.00320.00
8.0.250.0030.00316.94
8.0.240.0000.00816.86
8.0.230.0040.00416.84
8.0.220.0030.00316.88
8.0.210.0030.00316.87
8.0.200.0050.00316.89
8.0.190.0040.00416.98
8.0.180.0020.00517.00
8.0.170.0060.00316.84
8.0.160.0050.00316.88
8.0.150.0040.00416.86
8.0.140.0050.00316.79
8.0.130.0050.00013.35
8.0.120.0040.00416.77
8.0.110.0040.00416.93
8.0.100.0030.00316.91
8.0.90.0060.00317.02
8.0.80.0100.00616.88
8.0.70.0070.00016.77
8.0.60.0070.00016.82
8.0.50.0050.00216.95
8.0.30.0080.00817.14
8.0.20.0130.00917.31
8.0.10.0040.00416.90
8.0.00.0090.00916.76
7.4.330.0000.00516.69
7.4.320.0000.00616.45
7.4.300.0000.00616.64
7.4.290.0000.00716.52
7.4.280.0070.00016.40
7.4.270.0000.00716.66
7.4.260.0000.00513.30
7.4.250.0020.00516.40
7.4.240.0020.00616.57
7.4.230.0020.00516.36
7.4.220.0050.00216.38
7.4.210.0050.00916.56
7.4.200.0030.00316.43
7.4.140.0090.00917.86
7.4.130.0060.01216.42
7.4.120.0060.01616.38
7.4.110.0160.00616.58
7.4.100.0080.00916.53
7.4.90.0030.01316.66
7.4.80.0100.00719.39
7.4.70.0160.00316.50
7.4.60.0090.00616.46
7.4.50.0090.00016.51
7.4.40.0130.00516.67
7.4.10.0000.01716.50
7.4.00.0070.01016.48
7.3.330.0000.00716.28
7.3.320.0000.00613.16
7.3.310.0040.00416.23
7.3.300.0000.00716.24
7.3.290.0030.01416.23
7.3.280.0120.00416.21
7.3.260.0090.00916.23
7.3.240.0110.00616.34
7.3.230.0070.01116.26
7.3.210.0030.01416.49
7.3.200.0060.01116.55
7.3.190.0000.01816.48
7.3.180.0160.00016.33
7.3.170.0200.00316.33
7.3.160.0100.00616.22
7.3.130.0070.01016.13
7.3.120.0090.01216.14
7.3.110.0070.01016.16
7.3.100.0140.00716.30
7.3.90.0050.01016.28
7.3.80.0090.00916.36
7.3.70.0030.01716.17
7.3.60.0110.00816.23
7.3.50.0070.01415.99
7.3.40.0130.00916.18
7.3.30.0070.01316.10
7.3.20.0240.00616.32
7.3.10.0080.00716.24
7.3.00.0130.00316.25
7.2.330.0040.01416.60
7.2.320.0180.00016.65
7.2.310.0130.00316.47
7.2.300.0190.00316.52
7.2.290.0070.01016.73
7.2.260.0060.00916.44
7.2.250.0070.01016.51
7.2.240.0100.01016.15
7.2.230.0120.00316.29
7.2.220.0030.01316.29
7.2.210.0070.01016.28
7.2.200.0090.01216.32
7.2.190.0070.01416.33
7.2.180.0150.00316.31
7.2.170.0110.00716.24
7.2.160.0110.00716.40
7.2.150.0040.01516.55
7.2.140.0110.00816.37
7.2.130.0050.01116.61
7.2.120.0100.00916.36
7.2.110.0120.00616.60
7.2.100.0090.00916.27
7.2.90.0130.00916.43
7.2.80.0130.00716.47
7.2.70.0050.01416.19
7.2.60.0110.00716.43
7.2.50.0030.01516.48
7.2.40.0120.00916.60
7.2.30.0110.00716.34
7.2.20.0130.00316.25
7.2.10.0120.00616.67
7.2.00.0220.01016.51

preferences:
33.74 ms | 400 KiB | 5 Q