3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[ { "id": "474", "room_id": "14", "user_id": "20", "name": "121001.webm", "fname": "", "status": "0", "date_recorded": "October 17 2018 07:18:51", "size": "396135", "is_public": "0", "allow_download": "0", "privatekey": "", "duration": "0", "record_path": "https:example/url/test.mp4", "record_url": "https:example/url/test.mp4" } ]'; //this will return array with stdClass object $data = json_decode($json); echo $data[0]->record_url . PHP_EOL; //this will return array with associative array $data = json_decode($json, true); echo $data[0]['record_url'] . PHP_EOL;

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.0160.00420.77
8.4.10.0000.01017.46
8.3.140.0150.00316.79
8.3.130.0000.00818.28
8.3.120.0030.00620.86
8.3.110.0050.00320.94
8.3.100.0000.01024.06
8.3.90.0000.01126.77
8.3.80.0060.00316.75
8.3.70.0180.00316.58
8.3.60.0080.01216.63
8.3.50.0070.00617.42
8.3.40.0070.00718.58
8.3.30.0090.00618.71
8.3.20.0050.00318.77
8.3.10.0030.00523.67
8.3.00.0050.00320.52
8.2.260.0030.00518.58
8.2.250.0070.01117.23
8.2.240.0060.00317.13
8.2.230.0050.00522.58
8.2.220.0060.00337.54
8.2.210.0070.01126.77
8.2.200.0030.00616.63
8.2.190.0040.01416.58
8.2.180.0030.01018.54
8.2.170.0070.00722.96
8.2.160.0080.01120.57
8.2.150.0050.00324.18
8.2.140.0000.00924.66
8.2.130.0070.00026.16
8.2.120.0070.00021.06
8.2.110.0060.00319.32
8.2.100.0110.00317.84
8.2.90.0060.00318.16
8.2.80.0000.00819.14
8.2.70.0000.00817.25
8.2.60.0030.00517.50
8.2.50.0000.00717.93
8.2.40.0040.00419.23
8.2.30.0040.00419.23
8.2.20.0050.00318.18
8.2.10.0000.00719.50
8.2.00.0050.00317.64
8.1.310.0140.00318.26
8.1.300.0060.00318.44
8.1.290.0090.00018.88
8.1.280.0100.01025.92
8.1.270.0090.00023.99
8.1.260.0000.01626.35
8.1.250.0030.01028.09
8.1.240.0030.01323.96
8.1.230.0110.00020.95
8.1.220.0050.00317.75
8.1.210.0080.00018.92
8.1.200.0090.00017.35
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0000.00817.62
8.1.160.0040.00418.86
8.1.150.0080.00018.95
8.1.140.0070.00022.15
8.1.130.0070.00020.03
8.1.120.0030.00317.41
8.1.110.0060.00317.50
8.1.100.0040.00417.49
8.1.90.0040.00417.46
8.1.80.0040.00417.38
8.1.70.0030.00517.50
8.1.60.0030.00617.59
8.1.50.0000.00817.50
8.1.40.0000.00717.54
8.1.30.0030.00617.55
8.1.20.0070.00017.63
8.1.10.0040.00417.49
8.1.00.0080.00017.57
8.0.300.0040.00419.89
8.0.290.0060.00316.75
8.0.280.0000.00718.44
8.0.270.0000.00716.74
8.0.260.0030.00320.16
8.0.250.0000.00616.98
8.0.240.0070.00016.84
8.0.230.0070.00316.88
8.0.220.0060.00316.90
8.0.210.0040.00316.77
8.0.200.0000.00716.97
8.0.190.0000.00717.06
8.0.180.0030.00516.87
8.0.170.0060.00316.95
8.0.160.0040.00416.79
8.0.150.0030.00616.83
8.0.140.0000.00816.75
8.0.130.0000.00613.33
8.0.120.0040.00416.85
8.0.110.0030.00616.87
8.0.100.0000.00716.90
8.0.90.0050.00216.81
8.0.80.0070.00816.86
8.0.70.0050.00216.92
8.0.60.0040.00416.83
8.0.50.0000.00716.87
8.0.30.0130.00717.01
8.0.20.0170.00717.20
8.0.10.0250.00616.88
8.0.00.0110.01516.87
7.4.330.0030.00315.55
7.4.320.0000.00716.59
7.4.300.0030.00416.51
7.4.290.0060.00016.56
7.4.280.0040.00416.46
7.4.270.0030.00316.64
7.4.260.0050.00316.46
7.4.250.0070.00016.49
7.4.240.0000.00716.45
7.4.230.0030.00316.71
7.4.220.0000.00716.44
7.4.210.0100.00616.63
7.4.200.0070.00016.49
7.4.160.0140.00816.52
7.4.150.0140.01816.58
7.4.140.0120.01017.61
7.4.130.0150.01116.35
7.4.120.0110.01116.50
7.4.110.0200.00316.46
7.4.100.0100.01316.36
7.4.90.0150.00616.46
7.4.80.0140.00817.93
7.4.70.0160.00616.44
7.4.60.0130.00916.52
7.4.50.0150.00716.30
7.4.40.0180.00616.49
7.4.30.0280.00916.45
7.4.20.0210.01116.46
7.4.10.0290.00416.43
7.4.00.0100.01115.36
7.3.330.0060.00013.10
7.3.320.0060.00013.14
7.3.310.0000.00716.34
7.3.300.0030.00316.30
7.3.290.0030.00316.22
7.3.280.0180.00616.25
7.3.270.0240.00816.18
7.3.260.0130.00716.31
7.3.250.0140.01416.17
7.3.240.0100.01016.47
7.3.230.0160.00516.32
7.3.220.0190.00816.18
7.3.210.0190.00416.29
7.3.200.0220.00516.28
7.3.190.0140.01216.25
7.3.180.0190.01216.28
7.3.170.0170.00616.27
7.3.160.0120.01216.14
7.3.150.0210.01616.16
7.3.140.0290.00416.21
7.3.130.0140.01816.13
7.3.120.0110.01115.40
7.3.110.0080.01215.35
7.3.100.0110.00915.40
7.3.90.0120.00415.51
7.3.80.0110.01015.41
7.3.70.0130.00915.45
7.3.60.0090.00815.47
7.3.50.0110.01015.50
7.3.40.0120.00715.50
7.3.30.0070.01215.50
7.3.20.0130.00616.38
7.3.10.0120.00916.56
7.3.00.0110.00816.42
7.2.340.0210.00716.19
7.2.330.0150.01316.52
7.2.320.0110.01016.42
7.2.310.0150.00716.25
7.2.300.0170.00516.51
7.2.290.0140.01116.46
7.2.280.0190.01016.16
7.2.270.0170.01316.18
7.2.260.0270.00016.21
7.2.250.0060.01215.59
7.2.240.0160.00615.42
7.2.230.0070.01215.53
7.2.220.0110.00715.59
7.2.210.0070.01115.61
7.2.200.0150.00415.46
7.2.190.0130.00515.57
7.2.180.0120.00815.54
7.2.170.0060.01115.52
7.2.160.0100.01015.79
7.2.150.0130.00516.71
7.2.140.0110.00916.56
7.2.130.0110.00816.71
7.2.120.0110.01016.66
7.2.110.0430.01115.92
7.2.100.0140.00716.05
7.2.90.0130.00716.10
7.2.80.0410.00816.09
7.2.70.0140.00716.06
7.2.60.0140.01216.08
7.2.50.0120.00416.06
7.2.40.0520.00416.16
7.2.30.0380.00916.25
7.2.20.0310.00716.12
7.2.10.0130.00616.06
7.2.00.0260.01116.12
7.1.330.0110.00915.76
7.1.320.0120.00715.76
7.1.310.0090.00615.58
7.1.300.0120.00615.48
7.1.290.0100.00915.64
7.1.280.0100.00815.77
7.1.270.0110.00715.72
7.1.260.0080.01015.61
7.1.250.0100.01015.57
7.1.240.0090.01115.67
7.1.230.0470.00815.04
7.1.220.0390.00614.92
7.1.210.0160.00914.88
7.1.200.0400.00615.07
7.1.190.0340.01115.07
7.1.180.0360.00514.94
7.1.170.0380.00814.96
7.1.160.0350.01014.97
7.1.150.0120.00514.89
7.1.140.0420.00814.99
7.1.130.0360.01015.11
7.1.120.0110.00715.12
7.1.110.0380.01014.84
7.1.100.0060.01114.99
7.1.90.0410.00615.06
7.1.80.0130.01015.09
7.1.70.0190.00614.82
7.1.60.0440.01021.08
7.1.50.0230.01121.02
7.1.40.0350.00821.04
7.1.30.0260.01220.97
7.1.20.0450.00820.98
7.1.10.0460.00714.98
7.1.00.0260.00614.97
7.0.330.0150.00515.20
7.0.320.0130.00615.23
7.0.310.0080.00915.23
7.0.300.0070.01015.22
7.0.290.0100.00815.20
7.0.280.0110.00615.12
7.0.270.0100.00515.13
7.0.260.0110.00715.11
7.0.250.0100.01015.36
7.0.240.0090.01115.24
7.0.230.0130.00715.13
7.0.220.0110.01015.27
7.0.210.0070.01115.31
7.0.200.0110.00715.28
7.0.190.0080.01415.31
7.0.180.0130.00815.19
7.0.170.0080.00915.26
7.0.160.0090.00815.34
7.0.150.0070.01215.32
7.0.140.0090.01015.28
7.0.130.0090.01215.18
7.0.120.0100.00615.11
7.0.110.0120.00615.22
7.0.100.0110.00715.11
7.0.90.0120.00415.18
7.0.80.0100.00715.10
7.0.70.0100.00715.23
7.0.60.0130.00815.21
7.0.50.0120.00515.19
7.0.40.0130.00814.25
7.0.30.0100.01314.21
7.0.20.0050.01414.17
7.0.10.0090.01314.23
7.0.00.0090.01014.21
5.6.400.0120.00815.27
5.6.390.0140.00715.20
5.6.380.0130.00414.93
5.6.370.0160.00815.16
5.6.360.0120.00915.28
5.6.350.0130.00615.31
5.6.340.0100.01014.91
5.6.330.0130.00515.13
5.6.320.0120.00515.30
5.6.310.0090.00715.05
5.6.300.0090.00814.94
5.6.290.0170.00214.96
5.6.280.0100.01115.06
5.6.270.0160.00715.07
5.6.260.0090.00915.12
5.6.250.0150.00315.05
5.6.240.0100.00815.03
5.6.230.0110.00615.27
5.6.220.0150.00515.21
5.6.210.0120.00615.10
5.6.200.0110.00714.93
5.6.190.0070.00915.04
5.6.180.0140.00615.11
5.6.170.0120.00515.10
5.6.160.0120.00914.98
5.6.150.0110.01015.05
5.6.140.0130.00514.98
5.6.130.0130.00715.33
5.6.120.0080.01415.16
5.6.110.0130.00615.11
5.6.100.0130.01214.92
5.6.90.0150.00814.91
5.6.80.0120.00714.91
5.6.70.0130.01015.03
5.6.60.0140.00715.09
5.6.50.0140.00615.05
5.6.40.0090.01114.97
5.6.30.0110.00814.91
5.6.20.0120.00715.12
5.6.10.0070.01014.95
5.6.00.0140.00414.95

preferences:
39.42 ms | 403 KiB | 5 Q