3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file_id = 1; $project_id = 1; $token = $project_id; $expiry = strtotime('+1 years'); $signature = hash_hmac('sha256', "{$file_id}-{$token}-{$expiry}", "shared-secret"); $url = 'https://media.example.com/' . $file_id . "?token={$token}&expiry={$expiry}&signature={$signature}"

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)
5.4.260.0030.07318.64
5.4.250.0070.05718.86
5.4.240.0200.06019.02
5.4.230.0070.05718.89
5.4.220.0200.04318.64
5.4.210.0070.05318.78
5.4.200.0070.05019.03
5.4.190.0100.06718.86
5.4.180.0030.05718.83
5.4.170.0070.07318.98
5.4.160.0030.06018.98
5.4.150.0070.05718.65
5.4.140.0070.06016.23
5.4.130.0100.04716.44
5.4.120.0100.05016.47
5.4.110.0130.06316.44
5.4.100.0130.04716.32
5.4.90.0070.06016.40
5.4.80.0030.06316.39
5.4.70.0200.05716.15
5.4.60.0100.04716.32
5.4.50.0130.04316.46
5.4.40.0030.05016.55
5.4.30.0030.05016.30
5.4.20.0130.04316.37
5.4.10.0130.04316.38
5.4.00.0130.04015.65
5.3.280.0070.05314.75
5.3.270.0100.07314.63
5.3.260.0100.07014.64
5.3.250.0170.04314.49
5.3.240.0130.04314.50
5.3.230.0000.06314.44
5.3.220.0170.05714.73
5.3.210.0130.06314.67
5.3.200.0070.05314.59
5.3.190.0170.04014.59
5.3.180.0130.04714.59
5.3.170.0030.06014.42
5.3.160.0070.05014.44
5.3.150.0030.05314.58
5.3.140.0000.05714.57
5.3.130.0100.04714.41
5.3.120.0100.06714.41
5.3.110.0030.05714.64
5.3.100.0130.04714.05
5.3.90.0030.05714.02
5.3.80.0130.04713.89
5.3.70.0100.04713.81
5.3.60.0100.04314.00
5.3.50.0100.04314.05
5.3.40.0100.04714.05
5.3.30.0130.06013.93
5.3.20.0100.06713.61
5.3.10.0030.05013.70
5.3.00.0030.05713.79
5.2.170.0030.04311.08
5.2.160.0030.05011.16
5.2.150.0000.04711.14
5.2.140.0070.06011.14
5.2.130.0070.03711.02
5.2.120.0170.02711.09
5.2.110.0000.04310.86
5.2.100.0100.04010.93
5.2.90.0030.04011.03
5.2.80.0000.04711.11
5.2.70.0130.03311.09
5.2.60.0170.03011.16
5.2.50.0100.05010.91
5.2.40.0070.04010.83
5.2.30.0200.04010.82
5.2.20.0070.05311.05
5.2.10.0030.04010.94
5.2.00.0000.04310.64
5.1.60.0030.03310.24
5.1.50.0030.04310.06
5.1.40.0070.0339.94
5.1.30.0030.03710.41
5.1.20.0100.03710.19
5.1.10.0030.03310.16
5.1.00.0070.03310.21
5.0.50.0030.0278.78
5.0.40.0030.0278.52
5.0.30.0000.0438.14
5.0.20.0070.0238.23
5.0.10.0030.0278.14
5.0.00.0100.0338.25
4.4.90.0000.0235.81
4.4.80.0000.0235.79
4.4.70.0000.0305.74
4.4.60.0000.0235.84
4.4.50.0030.0205.80
4.4.40.0030.0305.80
4.4.30.0070.0175.76
4.4.20.0030.0205.85
4.4.10.0070.0175.85
4.4.00.0070.0305.83
4.3.110.0000.0305.72
4.3.100.0100.0135.73
4.3.90.0030.0205.69
4.3.80.0030.0305.68
4.3.70.0070.0175.68
4.3.60.0030.0175.69
4.3.50.0100.0135.60
4.3.40.0000.0335.65
4.3.30.0000.0235.32
4.3.20.0000.0275.32
4.3.10.0030.0275.32
4.3.00.0000.0237.30

preferences:
140.22 ms | 1394 KiB | 7 Q