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); $example = '{"thumbnail":{"@url":"http:\/\/www.livestream.com\/filestore\/user-files\/chlukeestv\/2010\/01\/04\/92609a8d-afa6-4832-a8b2-ac4dc2925f4b_10.jpg"}}'; $json = drupal_json_decode($example); $thumbnail = $json->thumbnail; return $thumbnail->{'@url'}; } echo _its_video_gallery_livestream_thumbnail('abc','123');

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.0130.00718.40
8.3.50.0130.00221.92
8.3.40.0120.00318.77
8.3.30.0070.00719.04
8.3.20.0040.00420.21
8.3.10.0050.00321.91
8.3.00.0030.00622.29
8.2.180.0000.01516.88
8.2.170.0000.01522.96
8.2.160.0040.01120.89
8.2.150.0090.00624.18
8.2.140.0000.00824.66
8.2.130.0100.00326.16
8.2.120.0050.00317.63
8.2.110.0040.00420.48
8.2.100.0110.00017.72
8.2.90.0000.00719.28
8.2.80.0030.00617.97
8.2.70.0090.00317.50
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0040.00418.14
8.2.30.0070.00017.86
8.2.20.0050.00317.53
8.2.10.0040.00417.80
8.2.00.0020.00517.73
8.1.280.0140.00725.92
8.1.270.0070.00022.04
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0090.00020.87
8.1.230.0080.00317.42
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0050.00317.16
8.1.180.0040.00418.60
8.1.170.0000.00818.56
8.1.160.0030.00521.85
8.1.150.0040.00418.56
8.1.140.0060.00317.28
8.1.130.0000.00717.78
8.1.120.0040.00417.29
8.1.110.0000.00717.28
8.1.100.0080.00017.36
8.1.90.0000.00717.28
8.1.80.0000.00717.31
8.1.70.0030.00317.35
8.1.60.0040.00417.50
8.1.50.0050.00217.49
8.1.40.0080.00017.52
8.1.30.0030.00517.66
8.1.20.0000.00817.66
8.1.10.0070.00017.58
8.1.00.0000.00817.41
8.0.300.0040.00418.77
8.0.290.0040.00416.61
8.0.280.0000.00718.42
8.0.270.0040.00417.20
8.0.260.0030.00316.73
8.0.250.0000.00716.91
8.0.240.0030.00316.84
8.0.230.0030.00316.95
8.0.220.0000.00716.90
8.0.210.0040.00416.88
8.0.200.0040.00416.80
8.0.190.0000.00716.97
8.0.180.0000.00716.93
8.0.170.0040.00416.88
8.0.160.0070.00016.91
8.0.150.0080.00316.75
8.0.140.0080.00016.85
8.0.130.0000.00513.32
8.0.120.0000.00816.73
8.0.110.0050.00516.91
8.0.100.0070.00016.87
8.0.90.0050.00316.89
8.0.80.0030.01016.84
8.0.70.0020.00517.00
8.0.60.0000.00916.68
8.0.50.0000.00816.77
8.0.30.0080.01117.09
8.0.20.0060.01117.40
8.0.10.0000.00717.07
8.0.00.0120.00916.60
7.4.330.0050.00015.02
7.4.320.0030.00316.37
7.4.300.0000.00616.61
7.4.290.0030.00316.42
7.4.280.0000.00716.49
7.4.270.0000.00916.40
7.4.260.0070.00016.58
7.4.250.0070.00016.36
7.4.240.0000.00716.51
7.4.230.0030.00316.40
7.4.220.0150.00316.67
7.4.210.0070.00816.59
7.4.200.0000.00716.67
7.4.190.0030.00516.68
7.4.160.0040.01116.56
7.4.150.0100.00717.40
7.4.140.0040.01317.86
7.4.130.0110.00616.56
7.4.120.0080.00816.57
7.4.110.0060.01616.48
7.4.100.0120.00616.40
7.4.90.0100.00716.49
7.4.80.0160.00619.39
7.4.70.0090.00916.52
7.4.60.0060.00916.59
7.4.50.0000.00816.20
7.4.40.0060.00922.77
7.4.30.0100.00716.32
7.4.00.0070.01015.04
7.3.330.0000.00613.16
7.3.320.0000.00513.15
7.3.310.0030.00316.29
7.3.300.0040.00416.15
7.3.290.0100.01016.37
7.3.280.0100.00616.29
7.3.270.0070.01017.40
7.3.260.0180.00016.32
7.3.250.0070.01116.31
7.3.240.0090.00916.50
7.3.230.0120.00616.39
7.3.210.0110.00616.41
7.3.200.0030.01419.39
7.3.190.0090.00916.23
7.3.180.0000.01516.11
7.3.170.0060.00916.32
7.3.160.0090.00616.32
7.3.120.0030.01514.67
7.3.110.0060.01214.68
7.3.100.0060.00615.11
7.3.90.0070.00714.78
7.3.80.0130.00014.77
7.3.70.0090.00614.78
7.3.60.0120.00314.65
7.3.50.0040.00414.82
7.3.40.0000.00914.68
7.3.30.0090.00614.82
7.3.20.0030.00716.73
7.3.10.0070.00416.67
7.3.00.0000.01116.70
7.2.330.0090.00916.51
7.2.320.0130.00316.57
7.2.310.0070.01016.52
7.2.300.0120.00916.62
7.2.290.0030.01316.41
7.2.250.0090.00914.89
7.2.240.0070.01015.01
7.2.230.0080.00814.86
7.2.220.0130.00014.90
7.2.210.0100.00714.79
7.2.200.0030.01015.01
7.2.190.0000.01514.88
7.2.180.0080.00814.97
7.2.170.0060.01014.79
7.2.60.0060.00616.39
7.2.00.0070.00719.21
7.1.330.0040.01115.68
7.1.320.0040.01115.79
7.1.310.0070.00715.65
7.1.300.0040.01115.67
7.1.290.0080.00415.64
7.1.280.0060.00915.49
7.1.270.0030.01015.70
7.1.260.0060.00615.59
7.1.200.0040.00815.58
7.1.100.0060.00617.98
7.1.70.0170.00317.05
7.1.60.0030.02219.82
7.1.50.0100.01416.87
7.1.00.0070.07322.57
7.0.200.0100.00716.46
7.0.140.0030.07022.18
7.0.60.0070.07019.95
7.0.50.0030.07017.85
7.0.40.0100.08320.29
7.0.30.0430.06720.23
7.0.20.0200.04320.30
7.0.10.0070.08020.22
7.0.00.0100.07320.25
5.6.280.0100.06721.00
5.6.210.0130.06320.75
5.6.200.0070.07018.31
5.6.190.0030.04020.39
5.6.180.0600.06320.64
5.6.170.0230.06320.48
5.6.160.0030.04720.55
5.6.150.0030.08318.27
5.6.140.0070.07318.23
5.6.130.0100.03318.20
5.6.120.0070.04021.02
5.6.110.0130.08321.03
5.6.100.0000.04321.13
5.6.90.0200.07021.04
5.6.80.0070.04720.49
5.5.350.0100.03020.38
5.5.340.0070.08017.98
5.5.330.0030.08020.41
5.5.320.0070.06020.36
5.5.310.0400.06320.28
5.5.300.0100.05017.97
5.5.290.0070.04717.95
5.5.280.0100.08020.68
5.5.270.0000.07720.87
5.5.260.0070.07020.76
5.5.250.0030.07720.45
5.5.240.0030.04020.34
5.4.450.0270.07319.25
5.4.440.0270.05319.63
5.4.430.0070.06019.21
5.4.420.0100.05319.36
5.4.410.0070.05719.42
5.4.400.2000.00018.51
5.4.390.2000.00018.76
5.4.380.0270.05018.57
5.4.370.0370.04018.46
5.4.360.0730.05318.78
5.4.350.0330.04718.53
5.4.340.0170.06318.50
5.4.320.0090.04212.50
5.4.310.0080.03912.50
5.4.300.0090.03612.51
5.4.290.0060.04212.50
5.4.280.0050.04112.40
5.4.270.0070.03512.40
5.4.260.0100.05318.81
5.4.250.0070.05318.94
5.4.240.0030.05718.66
5.4.230.0030.05318.99
5.4.220.0070.05318.61
5.4.210.0130.04719.02
5.4.200.0070.05319.02
5.4.190.0000.05718.90
5.4.180.0170.04319.10
5.4.170.0070.05318.80
5.4.160.0000.06318.78
5.4.150.0070.08019.07
5.4.140.0030.05316.38
5.4.130.0100.05016.58
5.4.120.0070.05316.38
5.4.110.0130.04716.41
5.4.100.0100.04716.48
5.4.90.0130.04716.33
5.4.80.0100.04716.39
5.4.70.0100.05016.53
5.4.60.0070.06716.46
5.4.50.0070.05016.38
5.4.40.0100.05716.60
5.4.30.0000.05716.41
5.4.20.0030.07016.40
5.4.10.0100.04716.56
5.4.00.0170.05316.00
5.3.290.0060.04112.80
5.3.280.0030.05314.67
5.3.270.0130.05314.66
5.3.260.0070.05714.59
5.3.250.0130.04314.69
5.3.240.0070.05714.63
5.3.230.0170.04314.58
5.3.220.0200.04014.70
5.3.210.0070.05314.79
5.3.200.0130.04314.64
5.3.190.0170.04314.78
5.3.180.0170.06314.64
5.3.170.0100.04714.72
5.3.160.0070.05014.63
5.3.150.0070.05314.54
5.3.140.0100.06014.38
5.3.130.0100.07314.64
5.3.120.0100.07014.62
5.3.110.0030.06714.52
5.3.100.0100.07014.19
5.3.90.0100.06014.08
5.3.80.0100.06314.10
5.3.70.0070.06314.09

preferences:
57.95 ms | 401 KiB | 5 Q