3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stream = 'skwjr'; $url = sprintf('https://api.twitch.tv/api/channels/%s/access_token/', $stream); $page = file_get_contents($url); $json = json_decode($page, true); $token = $json['token']; $sig = $json['sig']; echo 'http://usher.twitch.tv/api/channel/hls/' . $stream . '.m3u8?player=twitchweb&token=' . rawurlencode($token) . '&sig=' . $sig;

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.0090.00616.75
8.3.50.0120.01021.20
8.3.40.0150.00618.93
8.3.30.0040.01118.84
8.3.20.0040.00420.34
8.3.10.0040.00423.52
8.3.00.0060.00319.69
8.2.180.0100.00716.88
8.2.170.0100.01022.96
8.2.160.0070.00720.39
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00417.75
8.2.110.0040.00422.08
8.2.100.0090.00317.75
8.2.90.0000.00819.17
8.2.80.0030.00517.97
8.2.70.0060.00317.61
8.2.60.0080.00018.05
8.2.50.0000.00818.07
8.2.40.0040.00419.46
8.2.30.0030.00619.99
8.2.20.0080.00017.94
8.2.10.0070.00018.15
8.2.00.0060.00318.09
8.1.280.0150.00625.92
8.1.270.0040.00420.40
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0070.00322.59
8.1.230.0090.00317.42
8.1.220.0000.00917.76
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0040.00418.53
8.1.160.0040.00422.04
8.1.150.0000.00818.90
8.1.140.0030.00517.43
8.1.130.0000.00817.63
8.1.120.0030.00417.38
8.1.110.0000.00817.48
8.1.100.0040.00717.43
8.1.90.0050.00317.50
8.1.80.0040.00417.52
8.1.70.0030.00317.52
8.1.60.0060.00617.58
8.1.50.0040.00417.56
8.1.40.0040.00417.57
8.1.30.0000.00817.64
8.1.20.0030.00617.58
8.1.10.0000.00817.56
8.1.00.0040.00417.55
8.0.300.0080.00018.77
8.0.290.0090.00016.75
8.0.280.0030.00318.53
8.0.270.0000.00717.30
8.0.260.0030.00317.41
8.0.250.0070.00017.14
8.0.240.0060.00317.11
8.0.230.0030.00317.00
8.0.220.0070.00017.07
8.0.210.0040.00417.04
8.0.200.0030.00317.06
8.0.190.0000.00817.09
8.0.180.0070.00016.90
8.0.170.0030.00616.93
8.0.160.0080.00016.96
8.0.150.0000.00716.84
8.0.140.0070.00016.96
8.0.130.0000.00513.52
8.0.120.0000.00816.90
8.0.110.0040.00417.07
8.0.100.0050.00217.04
8.0.90.0070.00017.07
8.0.80.0040.01517.10
8.0.70.0050.00317.00
8.0.60.0030.00316.95
8.0.50.0000.00817.03
8.0.30.0070.01217.15
8.0.20.0170.00617.40
8.0.10.0000.00717.10
8.0.00.0090.01216.83
7.4.330.0030.00315.15
7.4.320.0030.00316.48
7.4.300.0000.00616.39
7.4.290.0070.00016.49
7.4.280.0000.00816.61
7.4.270.0000.00716.63
7.4.260.0030.00316.55
7.4.250.0000.00716.65
7.4.240.0030.00316.58
7.4.230.0030.00316.35
7.4.220.0060.01316.50
7.4.210.0100.01116.57
7.4.200.0030.00416.56
7.4.160.0090.00616.45
7.4.150.0030.01417.40
7.4.140.0120.00917.86
7.4.130.0130.00616.54
7.4.120.0090.01116.48
7.4.110.0030.02116.60
7.4.100.0060.01216.59
7.4.90.0100.00716.46
7.4.80.0070.01019.39
7.4.70.0030.01416.68
7.4.60.0060.00916.50
7.4.50.0070.00416.46
7.4.40.0130.00416.75
7.4.30.0120.00916.51
7.4.00.0070.01014.91
7.3.330.0000.00613.21
7.3.320.0000.00513.33
7.3.310.0070.00016.51
7.3.300.0070.00016.50
7.3.290.0000.00716.44
7.3.280.0100.00616.48
7.3.270.0120.01217.40
7.3.260.0070.01316.38
7.3.250.0070.01216.34
7.3.240.0060.01516.52
7.3.230.0120.00616.43
7.3.210.0110.00616.43
7.3.200.0120.00316.31
7.3.190.0100.00616.59
7.3.180.0060.00916.37
7.3.170.0090.00916.42
7.3.160.0100.00516.45
7.3.120.0110.00714.96
7.3.110.0100.00315.09
7.3.100.0120.00315.00
7.3.90.0090.00614.73
7.3.80.0040.01114.91
7.3.70.0060.00314.96
7.3.60.0030.01014.81
7.3.50.0030.01014.80
7.3.40.0070.00714.94
7.3.30.0070.00714.95
7.3.20.0120.00316.75
7.3.10.0000.01316.87
7.3.00.0070.00716.76
7.2.330.0180.00016.82
7.2.320.0120.00916.73
7.2.310.0070.01416.80
7.2.300.0030.01916.74
7.2.290.0100.01316.47
7.2.250.0100.01015.11
7.2.240.0100.00715.26
7.2.230.0030.01115.04
7.2.220.0060.00915.35
7.2.210.0060.01215.27
7.2.200.0110.00015.07
7.2.190.0060.00315.04
7.2.180.0090.00615.24
7.2.170.0030.01014.96
7.2.60.0030.01016.93
7.2.00.0030.01019.78
7.1.330.0040.01115.66
7.1.320.0110.00316.01
7.1.310.0030.01015.70
7.1.300.0060.01016.04
7.1.290.0040.00416.00
7.1.280.0120.00315.93
7.1.270.0110.00315.84
7.1.260.0030.01015.86
7.1.200.0030.00915.64
7.1.100.0090.00318.75
7.1.70.0000.01117.43
7.1.60.0110.01420.03
7.1.50.0070.01716.97
7.1.00.0100.07322.84
7.0.200.0030.00617.10
7.0.60.0100.08020.31
7.0.50.0000.04318.18
7.0.40.0030.07320.62
7.0.30.0630.07020.64
7.0.20.0270.08020.55
7.0.10.0070.05020.49
7.0.00.0000.06320.48
5.6.280.0000.03721.26
5.6.210.0030.04720.88
5.6.200.0070.07318.56
5.6.190.0030.09321.11
5.6.180.3970.04021.14
5.6.170.0370.07020.83
5.6.160.0130.07720.85
5.6.150.0070.04318.57
5.6.140.0130.07718.52
5.6.130.0070.07318.60
5.6.120.0130.06021.34
5.6.110.0170.06721.23
5.6.100.0070.07321.24
5.6.90.0030.09021.51
5.6.80.0030.08720.59
5.6.70.2870.03320.65
5.5.350.0170.05020.85
5.5.340.0130.07718.37
5.5.330.0070.04720.76
5.5.320.0230.04020.66
5.5.310.0230.08720.63
5.5.300.0070.08318.19
5.5.290.0030.08718.32
5.5.280.0030.05721.30
5.5.270.0070.08721.28
5.5.260.0100.05021.07
5.5.250.0100.07721.00
5.5.240.0270.06020.35
5.4.450.0530.05319.58
5.4.440.0570.06019.48
5.4.430.0500.05019.76
5.4.420.0430.05319.69
5.4.410.0670.04319.66
5.4.400.0570.05019.39
5.4.390.0630.07019.20
5.4.380.0470.07019.28
5.4.370.0470.05019.41
5.4.360.0470.06019.41
5.4.350.0530.05319.37
5.4.340.0600.05019.37
5.4.320.0100.05319.47
5.4.310.0100.05319.49
5.4.300.0130.04719.46
5.4.290.0330.07019.40
5.4.280.0530.05319.29
5.4.270.0470.05719.38
5.4.260.0530.04019.41
5.4.250.0430.05019.40
5.4.240.0400.05319.49
5.4.230.0470.05019.36
5.4.220.0400.05719.49
5.4.210.0500.04719.23
5.4.200.0570.05719.40
5.4.190.0430.05019.45
5.4.180.0500.05319.27
5.4.170.0530.05319.31
5.4.160.0470.04719.35
5.4.150.0600.03719.48
5.4.140.0600.07316.58
5.4.130.0570.05716.36
5.4.120.0500.05316.21
5.4.110.0570.05016.45
5.4.100.0530.06016.45
5.4.90.0500.06316.38
5.4.80.0570.04316.05
5.4.70.0370.05716.39
5.4.60.0330.06316.45
5.4.50.0030.07316.43
5.4.40.0000.07016.36
5.4.30.0000.06016.40
5.4.20.0300.07016.04

preferences:
47.35 ms | 401 KiB | 5 Q