3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = time(); $expire = time() + 2592000; $proto = 'http://'; $domain = 't2-btsport-live-hls-prod.akamaized.net'; $path = 'out/u/bts1/642_6.m3u8'; $key = '0326ebdb3e654166a66d3c62'; //$params = 'ip=1.2.3.4~st='.$start.'~exp='.$expire.'~acl=/*'; //WITH IP $params = 'st='.$start.'~exp='.$expire.'~acl=/*'; //NO IP function h2b($str) { $bin = ""; $i = 0; do { $bin .= chr(hexdec($str{$i}.$str{($i + 1)})); $i += 2; } while ($i < strlen($str)); return $bin; } $hash = hash_hmac('SHA256', $params, h2b($key)); echo $proto.$domain.'/'.$path.'?hdnea='.$params.'~hmac='.$hash; ?>

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)
7.3.10.0090.00316.73
7.3.00.0020.01116.82
7.2.130.0040.00816.90
7.2.120.0060.00816.96
7.2.110.0040.00816.83
7.2.100.0050.00516.93
7.2.90.0050.01016.92
7.2.80.0080.00416.81
7.2.70.0070.00717.03
7.2.60.0050.00916.91
7.2.50.0060.00916.82
7.2.40.0070.00616.92
7.2.30.0070.00616.86
7.2.20.0060.00616.90
7.2.10.0060.00616.97
7.2.00.0050.00717.48
7.1.250.0060.00515.78
7.1.240.0090.00616.00
7.1.230.0060.00615.59
7.1.220.0050.00315.60
7.1.210.0030.01015.54
7.1.200.0010.00915.77
7.1.190.0040.01115.62
7.1.180.0080.00315.89
7.1.170.0040.00415.81
7.1.160.0100.00315.41
7.1.150.0090.00615.93
7.1.140.0040.00815.80
7.1.130.0030.00815.42
7.1.120.0110.00315.78
7.1.110.0060.01015.70
7.1.100.0430.01015.87
7.1.90.0120.00315.64
7.1.80.0090.00615.88
7.1.70.0080.00616.42
7.1.60.0100.00518.03
7.1.50.0030.00615.83
7.1.40.0140.00315.91
7.1.30.0110.00715.78
7.1.20.0070.01015.97
7.1.10.0120.00015.57
7.1.00.0060.04219.09
7.0.330.0060.00615.34
7.0.320.0120.00615.34
7.0.310.0070.01015.29
7.0.300.0070.00715.06
7.0.290.0030.00615.44
7.0.280.0120.00415.26
7.0.270.0060.00315.22
7.0.260.0110.00315.10
7.0.250.0030.01015.51
7.0.240.0030.01315.39
7.0.230.0130.00615.49
7.0.220.0150.00415.52
7.0.210.0140.00915.37
7.0.200.0090.00316.10
7.0.190.0030.00615.42
7.0.180.0060.00615.30
7.0.170.0080.00815.11
7.0.160.0130.00015.21
7.0.150.0030.00915.26
7.0.140.0040.00815.10
7.0.130.0030.00915.41
7.0.120.0030.00915.51
7.0.110.0110.00015.47
7.0.100.0060.00615.27
7.0.90.0090.03217.62
7.0.80.0100.04517.71
7.0.70.0030.03017.73
7.0.60.0100.04317.74
7.0.50.0070.02517.89
7.0.40.0060.03816.64
7.0.30.0090.04216.71
7.0.20.0030.04716.64
7.0.10.0050.04416.74
7.0.00.0100.03316.78
5.6.380.0040.00814.57
5.6.370.0000.00914.33
5.6.360.0030.00914.23
5.6.350.0110.00313.98
5.6.340.0100.00314.58
5.6.330.0000.01314.09
5.6.320.0070.00714.67
5.6.310.0090.00614.40
5.6.300.0070.00413.98
5.6.290.0050.00514.48
5.6.280.0000.04217.89
5.6.270.0040.00814.63
5.6.260.0000.01314.88
5.6.250.0070.01014.47
5.6.240.0030.03917.62
5.6.230.0050.02617.63
5.6.220.0060.04117.48
5.6.210.0110.03817.66
5.6.200.0040.04617.69
5.6.190.0090.04117.70
5.6.180.0070.04717.82
5.6.170.0080.04317.65
5.6.160.0020.04617.65
5.6.150.0030.03317.67
5.6.140.0160.03617.76
5.6.130.0150.03617.71
5.6.120.0080.03417.59
5.6.110.0080.03017.70
5.6.100.0060.04117.74
5.6.90.0030.04317.65
5.6.80.0130.03517.26
5.6.70.0050.04117.32
5.6.60.0070.03717.32
5.6.50.0080.04017.23
5.6.40.0050.03217.38
5.6.30.0090.03517.21
5.6.20.0060.04217.32
5.6.10.0030.04417.29
5.6.00.0070.04317.32
5.5.380.0060.04615.66
5.5.370.0020.04815.95
5.5.360.0090.03815.96
5.5.350.0050.04215.67
5.5.340.0080.03316.19
5.5.330.0060.02716.10
5.5.320.0020.03215.93
5.5.310.0100.02315.88
5.5.300.0020.03116.13
5.5.290.0060.04516.00
5.5.280.0100.04116.00
5.5.270.0080.02215.95
5.5.260.0030.02716.09
5.5.250.0080.04215.89
5.5.240.0050.02815.65
5.5.230.0050.04015.66
5.5.220.0030.02415.64
5.5.210.0030.03315.64
5.5.200.0040.04315.56
5.5.190.0050.04315.57
5.5.180.0030.04315.58
5.5.170.0040.00411.02
5.5.160.0090.03815.46
5.5.150.0070.04015.52
5.5.140.0070.04115.66
5.5.130.0160.03215.57
5.5.120.0070.02715.49
5.5.110.0020.04615.70
5.5.100.0070.04015.63
5.5.90.0040.04315.41
5.5.80.0020.04415.59
5.5.70.0050.03815.52
5.5.60.0150.03215.48
5.5.50.0060.04215.53
5.5.40.0050.03315.64
5.5.30.0050.04115.48
5.5.20.0110.01715.42
5.5.10.0100.03315.45
5.5.00.0090.04115.59

preferences:
34.54 ms | 400 KiB | 5 Q