3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stream = 'monstercat'; $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.0000.02216.63
8.3.50.0130.00522.02
8.3.40.0150.00018.61
8.3.30.0140.00418.89
8.3.20.0070.00020.16
8.3.10.0000.00823.65
8.3.00.0040.00419.25
8.2.180.0070.01116.75
8.2.170.0140.00722.96
8.2.160.0110.00420.22
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0030.00517.63
8.2.120.0040.00426.35
8.2.110.0090.00019.18
8.2.100.0080.00317.72
8.2.90.0050.00319.04
8.2.80.0000.00817.97
8.2.70.0000.00817.75
8.2.60.0040.00418.04
8.2.50.0060.00318.07
8.2.40.0000.00719.37
8.2.30.0000.00720.70
8.2.20.0030.00717.78
8.2.10.0040.00418.20
8.2.00.0040.00418.08
8.1.280.0090.00925.92
8.1.270.0100.01023.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00717.48
8.1.230.0100.00317.48
8.1.220.0050.00317.80
8.1.210.0050.00318.77
8.1.200.0090.00017.48
8.1.190.0040.00417.63
8.1.180.0030.00518.10
8.1.170.0030.00618.45
8.1.160.0030.00522.03
8.1.150.0000.00718.89
8.1.140.0050.00319.55
8.1.130.0040.00417.72
8.1.120.0040.00417.39
8.1.110.0040.00417.50
8.1.100.0040.00417.48
8.1.90.0000.00717.46
8.1.80.0050.00217.52
8.1.70.0070.00017.46
8.1.60.0040.00417.58
8.1.50.0030.00617.59
8.1.40.0040.00717.49
8.1.30.0000.00817.64
8.1.20.0040.00417.56
8.1.10.0000.00817.49
8.1.00.0050.00517.57
8.0.300.0070.00018.77
8.0.290.0060.00316.88
8.0.280.0000.00718.63
8.0.270.0050.00317.34
8.0.260.0000.00717.28
8.0.250.0040.00417.13
8.0.240.0040.00417.11
8.0.230.0080.00017.06
8.0.220.0070.00316.92
8.0.210.0000.00717.07
8.0.200.0000.00617.14
8.0.190.0040.00416.97
8.0.180.0040.00416.94
8.0.170.0040.00417.14
8.0.160.0040.00417.05
8.0.150.0050.00216.84
8.0.140.0040.00416.87
8.0.130.0070.00013.46
8.0.120.0000.00816.89
8.0.110.0000.00717.07
8.0.100.0000.00816.86
8.0.90.0040.00416.97
8.0.80.0060.01017.02
8.0.70.0050.00316.95
8.0.60.0060.00316.98
8.0.50.0050.00216.82
8.0.30.0150.00517.10
8.0.20.0080.01117.40
8.0.10.0000.00717.03
8.0.00.0100.01016.79
7.4.330.0000.00516.85
7.4.320.0070.00016.55
7.4.300.0030.00316.41
7.4.290.0030.00616.53
7.4.280.0000.00816.52
7.4.270.0060.00016.41
7.4.260.0060.00316.55
7.4.250.0070.00016.57
7.4.240.0020.00616.56
7.4.230.0070.00016.54
7.4.220.0110.00816.46
7.4.210.0070.00716.45
7.4.200.0050.00316.39
7.4.160.0090.00616.72
7.4.150.0200.00317.40
7.4.140.0080.01117.86
7.4.130.0030.01316.55
7.4.120.0100.00816.43
7.4.110.0120.00616.63
7.4.100.0110.00816.43
7.4.90.0100.00716.68
7.4.80.0100.01419.39
7.4.70.0090.00916.56
7.4.60.0030.01316.61
7.4.50.0090.00616.22
7.4.40.0110.00616.29
7.4.30.0090.00916.63
7.4.00.0030.01414.98
7.3.330.0000.00613.37
7.3.320.0060.00013.31
7.3.310.0030.00516.61
7.3.300.0030.00316.48
7.3.290.0110.00516.39
7.3.280.0050.01016.43
7.3.270.0110.00717.40
7.3.260.0120.01216.37
7.3.250.0120.00716.40
7.3.240.0120.00916.43
7.3.230.0030.01316.39
7.3.210.0110.00616.46
7.3.200.0080.00916.29
7.3.190.0180.00016.48
7.3.180.0130.00316.38
7.3.170.0060.00916.35
7.3.160.0030.01716.46
7.3.120.0080.00814.86
7.3.110.0070.01014.72
7.3.100.0060.00614.94
7.3.90.0110.00414.87
7.3.80.0000.01014.72
7.3.70.0080.00814.61
7.3.60.0040.01214.91
7.3.50.0060.00614.78
7.3.40.0000.01314.91
7.3.30.0060.00614.73
7.3.20.0030.01016.81
7.3.10.0080.00816.68
7.3.00.0030.01016.84
7.2.330.0070.01016.76
7.2.320.0000.01616.56
7.2.310.0090.00916.85
7.2.300.0060.01016.60
7.2.290.0200.00616.63
7.2.250.0030.01615.19
7.2.240.0100.01015.36
7.2.230.0100.00315.41
7.2.220.0030.01315.08
7.2.210.0110.00415.32
7.2.200.0070.00715.20
7.2.190.0040.01114.98
7.2.180.0130.00315.16
7.2.170.0030.00915.05
7.2.60.0060.00616.88
7.2.00.0040.01119.97
7.1.330.0040.01116.04
7.1.320.0000.01015.98
7.1.310.0070.00716.00
7.1.300.0110.00415.49
7.1.290.0100.00615.94
7.1.280.0060.00315.78
7.1.270.0090.00315.75
7.1.260.0060.00615.70
7.1.200.0100.00315.97
7.1.100.0070.00718.16
7.1.70.0030.01017.59
7.1.60.0000.01217.69
7.1.50.0000.01117.09
7.1.40.0000.01216.75
7.1.30.0030.00917.17
7.1.20.0000.01217.20
7.1.10.0070.00716.98
7.1.00.0040.00416.94
7.0.200.0000.01117.28
7.0.190.0000.00816.96
7.0.180.0030.00916.68
7.0.170.0070.00316.55
7.0.160.0000.00816.50
7.0.150.0000.01116.38
7.0.140.0070.00416.57
7.0.130.0030.00616.75
7.0.120.0000.00916.85
7.0.110.0000.00916.74
7.0.100.0060.01216.88
7.0.90.0090.01216.63
7.0.80.0000.00816.66
7.0.70.0000.00816.42
7.0.60.0030.00616.36
7.0.50.0030.00916.64
7.0.40.0000.01015.32
7.0.30.0030.00715.32
7.0.20.0080.00015.32
7.0.10.0040.00415.32
7.0.00.0000.00815.32
5.6.300.0070.06520.89
5.6.290.0100.03320.89
5.6.280.0030.05921.09
5.6.270.0000.04421.34
5.6.260.0070.08021.21
5.6.250.0070.04721.09
5.6.240.0070.03821.14
5.6.230.0000.04821.13
5.6.220.0000.04321.11
5.6.210.0070.07821.16
5.6.200.0070.04021.14
5.6.190.0000.04521.19
5.6.180.0030.04221.07
5.6.170.0030.04421.11
5.6.160.0070.03921.15
5.6.150.0000.04921.22
5.6.140.0130.04521.19
5.6.130.0100.07721.00
5.6.120.0100.07421.13
5.6.110.0030.04820.95
5.6.100.0070.04121.04
5.6.90.0030.06020.96
5.6.80.0140.05520.41
5.6.70.0000.04220.51
5.6.60.0030.09020.58
5.6.50.0030.04020.68
5.6.40.0070.04320.34
5.6.30.0070.04420.66
5.6.20.0000.05120.53
5.6.10.0060.04820.40
5.6.00.0030.04420.61
5.5.380.0030.03717.90
5.5.370.0030.03917.71
5.5.360.0030.04017.89
5.5.350.0000.07117.71
5.5.340.0070.07718.38
5.5.330.0000.04918.29
5.5.320.0030.03918.07
5.5.310.0030.04718.21
5.5.300.0130.04018.18
5.5.290.0030.04318.40
5.5.280.0060.06718.05
5.5.270.0100.04718.30
5.5.260.0030.04817.91
5.5.250.0070.07818.12
5.5.240.0030.04617.68
5.5.230.0070.03617.67
5.5.220.0070.03717.64
5.5.210.0030.05017.67
5.5.200.0030.03917.64
5.5.190.0060.03517.55
5.5.180.0000.05517.31
5.5.160.0070.03317.63
5.5.150.0030.08217.62
5.5.140.0070.03417.63
5.5.130.0030.08317.64
5.5.120.0000.04117.56
5.5.110.0030.03817.65
5.5.100.0000.04217.59
5.5.90.0070.03517.49
5.5.80.0000.04017.55
5.5.70.0030.05117.32
5.5.60.0030.03917.43
5.5.50.0000.04017.31
5.5.40.0030.04217.61
5.5.30.0430.03017.56
5.5.20.0060.03517.62
5.5.10.0060.03517.61
5.5.00.0030.03817.17

preferences:
58.81 ms | 401 KiB | 5 Q