3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Title of this code //php 5.5.12 $start = time(); $expire = time() + 2592000; $proto = 'http://'; $domain = 't2-btsport-live-hls-prod.akamaized.net'; $path = 'out/u/europe/europe.m3u8'; $key = 'A65A28D4A2F97F470624F15E637C205D'; $params = 'ip=2.31.243.204~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.4.00.0130.00715.20
7.3.120.0000.01514.69
7.3.110.0160.00015.13
7.3.100.0040.01114.70
7.3.90.0040.00815.10
7.3.80.0090.00914.48
7.3.70.0060.00914.67
7.3.60.0080.00414.84
7.3.50.0080.00415.02
7.3.40.0040.01115.05
7.3.30.0070.00314.99
7.3.20.0100.00316.77
7.3.10.0050.00516.68
7.3.00.0100.00316.81
7.2.250.0030.01215.08
7.2.240.0060.00915.13
7.2.230.0060.01015.23
7.2.220.0000.01815.14
7.2.210.0060.00915.31
7.2.200.0030.01115.12
7.2.190.0080.00614.88
7.2.180.0060.00614.95
7.2.170.0110.00415.02
7.2.60.0030.01016.99
7.1.330.0110.00416.08
7.1.320.0040.01115.92
7.1.310.0120.00615.77
7.1.300.0060.00615.81
7.1.290.0060.00915.55
7.1.280.0050.00515.85
7.1.270.0080.00815.91
7.1.260.0030.01115.64
7.1.200.0080.00416.06
7.1.100.0070.00718.24
7.1.70.0080.00317.08
7.1.60.0070.01719.13
7.1.00.0130.06722.44
7.0.200.0720.01016.66
7.0.100.0100.07719.91
7.0.90.0000.06720.14
7.0.80.0170.07019.89
7.0.70.0070.08020.13
7.0.60.0070.07319.94
7.0.50.0070.08320.31
7.0.40.0030.08320.04
7.0.30.0070.08020.18
7.0.20.0130.07720.17
7.0.10.0070.06719.98
7.0.00.0130.07020.16
5.6.250.0170.04720.82
5.6.240.0030.08720.75
5.6.230.0000.05320.54
5.6.220.0170.05320.68
5.6.210.0070.08320.66
5.6.200.0070.08020.96
5.6.190.0200.07320.95
5.6.180.0200.07720.96
5.6.170.0070.07021.09
5.6.160.0100.06320.94
5.6.150.0100.07721.02
5.6.140.0030.08321.06
5.6.130.0070.05321.11
5.6.120.0070.07321.04
5.6.110.0000.05721.11
5.6.100.0030.08721.07
5.6.90.0000.07021.00
5.6.80.0000.04020.44
5.6.70.0130.04720.45
5.6.60.0170.07320.46
5.6.50.0030.07720.46
5.6.40.0070.08320.44
5.6.30.0100.08020.53
5.6.20.0070.05320.40
5.6.10.0070.04020.44
5.6.00.0100.07720.39
5.5.380.0070.08020.57
5.5.370.0130.08020.38
5.5.360.0130.05020.43
5.5.350.0100.08720.46
5.5.340.0000.05720.80
5.5.330.0100.04720.86
5.5.320.0070.08720.89
5.5.310.0100.08020.91
5.5.300.0030.08320.94
5.5.290.0130.07720.78
5.5.280.0100.10020.79
5.5.270.0130.06720.83
5.5.260.0130.04020.81
5.5.250.0070.04720.69
5.5.240.0070.07320.22
5.5.230.0100.07320.22
5.5.220.0070.07320.20
5.5.210.0170.07320.27
5.5.200.0130.06720.00
5.5.190.0030.04720.23
5.5.180.0030.08020.26
5.5.160.0100.06320.24
5.5.150.0130.07020.25
5.5.140.0100.08320.08
5.5.130.0130.04720.13
5.5.120.0070.06720.28
5.5.110.0130.07020.26
5.5.100.0100.07719.93
5.5.90.0070.07320.17
5.5.80.0000.08320.02
5.5.70.0100.08320.03
5.5.60.0100.07020.12
5.5.50.0130.07019.96
5.5.40.0030.08020.18
5.5.30.0100.06020.10
5.5.20.0070.07720.06
5.5.10.0100.07019.96
5.5.00.0130.07020.03

preferences:
35.7 ms | 400 KiB | 5 Q