3v4l.org

run code in 300+ PHP versions simultaneously
<?php function _its_video_gallery_livestream_thumbnail($cid, $vid) { $url = 'http://x'.$cid.'x.api.channel.livestream.com/2.0/thumbnail.json?id='.$vid; // $response = drupal_http_request($url); // $data = $response->data; $data = '{"thumbnail":{"@url":"http:\/\/www.livestream.com\/filestore\/user-files\/chlukeestv\/2010\/01\/04\/92609a8d-afa6-4832-a8b2-ac4dc2925f4b_10.jpg"}}'; $decode = json_decode($data); var_dump($decode['thumbnail']); } _its_video_gallery_livestream_thumbnail('abc','def');

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.0100.00318.56
8.3.50.0160.00522.05
8.3.40.0090.00618.85
8.3.30.0040.01119.25
8.3.20.0040.00420.20
8.3.10.0080.00021.79
8.3.00.0050.00322.46
8.2.180.0110.00416.35
8.2.170.0070.00722.96
8.2.160.0100.00319.30
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0140.00426.16
8.2.120.0080.00319.51
8.2.110.0060.00320.54
8.2.100.0080.00317.84
8.2.90.0070.00019.36
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0090.00318.16
8.2.50.0050.00318.07
8.2.40.0030.00518.34
8.2.30.0080.00018.13
8.2.20.0000.00717.70
8.2.10.0050.00317.68
8.2.00.0040.00417.80
8.1.280.0080.00825.92
8.1.270.0080.00022.18
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0070.01123.86
8.1.230.0000.01122.19
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00717.35
8.1.190.0030.00517.54
8.1.180.0060.00318.72
8.1.170.0040.00418.52
8.1.160.0040.00421.88
8.1.150.0040.00418.68
8.1.140.0000.00917.43
8.1.130.0030.00317.83
8.1.120.0000.00717.51
8.1.110.0020.00517.36
8.1.100.0040.00417.38
8.1.90.0000.00717.42
8.1.80.0000.00717.48
8.1.70.0070.00017.30
8.1.60.0040.00417.50
8.1.50.0000.00717.51
8.1.40.0030.00617.49
8.1.30.0040.00417.54
8.1.20.0000.00817.52
8.1.10.0000.00917.60
8.1.00.0060.00317.52
8.0.300.0000.00718.77
8.0.290.0050.00216.93
8.0.280.0030.00318.32
8.0.270.0070.00017.22
8.0.260.0030.00316.80
8.0.250.0030.00316.99
8.0.240.0030.00617.05
8.0.230.0030.00316.96
8.0.220.0000.00716.89
8.0.210.0070.00016.97
8.0.200.0050.00216.94
8.0.190.0040.00416.90
8.0.180.0070.00316.97
8.0.170.0040.00416.98
8.0.160.0080.00016.94
8.0.150.0000.00816.85
8.0.140.0090.00016.97
8.0.130.0060.00013.27
8.0.120.0050.00316.80
8.0.110.0000.00816.89
8.0.100.0000.00716.88
8.0.90.0050.00216.87
8.0.80.0070.01017.01
8.0.70.0000.00816.93
8.0.60.0080.00016.99
8.0.50.0000.00816.84
8.0.30.0150.00716.97
8.0.20.0050.01417.40
8.0.10.0040.00417.11
8.0.00.0090.00816.80
7.4.330.0000.00515.08
7.4.320.0030.00316.51
7.4.300.0060.00016.48
7.4.290.0000.00616.62
7.4.280.0000.00816.62
7.4.270.0000.00716.50
7.4.260.0000.00716.46
7.4.250.0000.00716.42
7.4.240.0040.00416.44
7.4.230.0000.00716.33
7.4.220.0050.01416.45
7.4.210.0060.01016.56
7.4.200.0070.00016.48
7.4.190.0000.00816.66
7.4.160.0030.01316.88
7.4.150.0120.01217.40
7.4.140.0050.01417.86
7.4.130.0120.00716.58
7.4.120.0090.01216.48
7.4.110.0130.00516.42
7.4.100.0130.00416.52
7.4.90.0150.00816.70
7.4.80.0090.01519.39
7.4.70.0100.00716.63
7.4.60.0070.01416.69
7.4.50.0000.00516.32
7.4.40.0100.00322.77
7.4.30.0070.01016.60
7.4.00.0040.01215.16
7.3.330.0080.00013.43
7.3.320.0060.00013.42
7.3.310.0040.00416.29
7.3.300.0000.00716.34
7.3.290.0090.00616.30
7.3.280.0090.01016.34
7.3.270.0110.00617.40
7.3.260.0130.01016.41
7.3.250.0060.01116.51
7.3.240.0100.00616.43
7.3.230.0070.01016.60
7.3.210.0140.00316.42
7.3.200.0030.01416.45
7.3.190.0170.00016.29
7.3.180.0080.00816.38
7.3.170.0130.00316.50
7.3.160.0030.01316.48
7.3.120.0040.01115.05
7.2.330.0090.00916.35
7.2.320.0000.01816.48
7.2.310.0090.00616.77
7.2.300.0030.01316.77
7.2.290.0060.00916.45
7.2.60.0040.01116.95
7.2.00.0030.01319.52
7.1.200.0030.00915.90
7.1.100.0000.01118.26
7.1.70.0080.00317.01
7.1.60.0110.01419.82
7.1.50.0070.01716.93
7.1.00.0030.07722.37
7.0.200.0030.00516.85
7.0.140.0070.06721.95
7.0.110.0100.08019.97
7.0.100.0030.04019.96
7.0.90.0000.07320.07
7.0.80.0070.03720.09
7.0.70.0000.04319.94
7.0.60.0000.04720.11
7.0.50.0000.04319.94
7.0.40.0030.04019.88
7.0.30.0130.03319.85
7.0.20.0030.04019.70
7.0.10.0070.03719.86
7.0.00.0100.03719.64
5.6.280.0070.07021.05
5.6.260.0000.04320.51
5.6.250.0070.03720.75
5.6.240.0030.04320.70
5.6.230.0000.04320.64
5.6.220.0000.03720.63
5.6.210.0130.03320.63
5.6.200.0030.04720.56
5.6.190.0030.04320.55
5.6.180.0030.04020.63
5.6.170.0030.04720.66
5.6.160.0000.04720.86
5.6.150.0000.03720.70
5.6.140.0130.04020.54
5.6.130.0030.04020.62
5.6.120.0030.06720.47
5.6.110.0000.08320.61
5.6.100.0070.06320.58
5.6.90.0100.07320.64
5.6.80.0200.06720.02
5.6.70.0070.05720.03
5.6.60.0070.04720.07
5.6.50.0100.07019.94
5.6.40.0170.04019.97
5.6.30.0100.07020.06
5.6.20.0000.05719.90
5.6.10.0100.07320.00
5.6.00.0070.08320.00
5.5.380.0070.05317.64
5.5.370.0170.02717.51
5.5.360.0030.05017.68
5.5.350.0030.03317.59
5.5.340.0100.03018.10
5.5.330.0070.03017.91
5.5.320.0070.03718.13
5.5.310.0070.03018.23
5.5.300.0100.05717.83
5.5.290.0030.03717.83
5.5.280.0000.04318.09
5.5.270.0070.03718.07
5.5.260.0070.07318.13
5.5.250.0100.04317.74
5.5.240.0130.03317.30
5.5.230.0130.03317.48
5.5.220.0030.05317.30
5.5.210.0070.08017.51
5.5.200.0100.07017.47
5.5.190.0130.06317.45
5.5.180.0130.07717.50
5.5.160.0100.07317.45
5.5.150.0100.07317.42
5.5.140.0100.07317.17
5.5.130.0070.05317.40
5.5.120.0130.04717.42
5.5.110.0030.08317.44
5.5.100.0130.07017.17
5.5.90.0070.07717.16
5.5.80.0030.04317.16
5.5.70.0000.05717.51
5.5.60.0030.08317.16
5.5.50.0030.04717.15
5.5.40.0100.06717.33
5.5.30.0030.04717.12
5.5.20.0000.08317.29
5.5.10.0100.06317.37
5.5.00.0070.07317.14
5.4.450.0000.04319.34
5.4.440.0000.05019.35
5.4.430.0100.06719.29
5.4.420.0030.04319.63
5.4.410.0030.08319.44
5.4.400.0070.06719.19
5.4.390.0030.06718.97
5.4.380.0100.06719.34
5.4.370.0000.07719.16
5.4.360.0170.06019.17
5.4.350.0030.08318.97
5.4.340.0030.07719.31
5.4.320.0070.03719.16
5.4.310.0000.05319.33
5.4.300.0070.06019.01
5.4.290.0130.07019.21
5.4.280.0100.06019.00
5.4.270.0100.06319.01
5.4.260.0070.07719.22
5.4.250.0070.08319.24
5.4.240.0170.06319.09
5.4.230.0100.06719.30
5.4.220.0130.07019.08
5.4.210.0000.05018.99
5.4.200.0130.06319.18
5.4.190.0100.07318.94
5.4.180.0070.07319.30
5.4.170.0070.07019.33
5.4.160.0070.04019.34
5.4.150.0130.07019.30
5.4.140.0000.04016.36
5.4.130.0030.04316.54
5.4.120.0100.07016.33
5.4.110.0070.07716.41
5.4.100.0070.05016.36
5.4.90.0070.03016.26
5.4.80.0100.05716.35
5.4.70.0030.03316.34
5.4.60.0030.03316.59
5.4.50.0070.03016.39
5.4.40.0070.03316.53
5.4.30.0070.06716.24
5.4.20.0030.05316.33
5.4.10.0070.07016.45
5.4.00.0130.06315.83
5.3.290.0100.07714.70
5.3.280.0200.04714.63
5.3.270.0100.07714.46
5.3.260.0100.06714.73
5.3.250.0070.07714.60
5.3.240.0070.07714.73
5.3.230.0030.08314.61
5.3.220.0030.04714.57
5.3.210.0100.03014.56
5.3.200.0030.08014.65
5.3.190.0000.06714.65
5.3.180.0000.05314.42
5.3.170.0030.07314.42
5.3.160.0130.05714.70
5.3.150.0030.03314.64
5.3.140.0100.06014.59
5.3.130.0070.03314.40
5.3.120.0070.07014.63
5.3.110.0000.06714.63
5.3.100.0000.07014.04
5.3.90.0100.07314.02
5.3.80.0100.06713.88
5.3.70.0070.05714.04
5.3.60.0070.05713.98
5.3.50.0070.07313.93
5.3.40.0030.06713.80
5.3.30.0100.03314.04
5.3.20.0030.06313.77
5.3.10.0100.03013.69
5.3.00.0130.04313.67

preferences:
42.17 ms | 401 KiB | 5 Q