3v4l.org

run code in 300+ PHP versions simultaneously
<?php $encryptionKey = base64_decode("xErBbroP73A4DPhHAIEMul6zf9lenyuEno04tmdWZ3g="); $checksumKey = base64_decode("xPwnkqGeQXmMJom48pSEdRmU1MXQ8kr3jCey20d+eu8="); $timestamp = floor(microtime(true)*1000); $message = $timestamp.";friendfinder123"; $blockSize = mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC); $padding = $blockSize - (strlen($message) % $blockSize); $message .= str_repeat(chr($padding), $padding); srand(time()); $ivSize = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC); $iv = mcrypt_create_iv($ivSize,MCRYPT_RAND); $encryptedMessage = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $encryptionKey, $message,MCRYPT_MODE_CBC, $iv); $hmac = hash_hmac("sha1", $encryptedMessage.$iv, $checksumKey, true); $authorizationToken = base64_encode($encryptedMessage.$iv.$hmac) ?>

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.120.0130.00314.48
7.3.110.0120.00314.96
7.3.100.0070.01114.77
7.3.90.0040.01214.96
7.3.80.0040.00814.55
7.3.70.0100.00314.89
7.3.60.0000.01214.73
7.3.50.0060.00914.67
7.3.40.0100.00314.42
7.3.30.0090.00314.87
7.3.20.0060.00616.77
7.3.10.0100.00016.26
7.3.00.0000.01116.56
7.2.240.0030.01315.07
7.2.230.0120.00015.05
7.2.220.0030.00714.94
7.2.210.0070.01014.64
7.2.200.0060.00914.72
7.2.190.0000.01514.90
7.2.180.0030.00914.88
7.2.170.0060.00615.05
7.2.160.0070.00714.86
7.2.150.0070.01016.87
7.2.140.0070.01016.91
7.2.130.0060.01216.74
7.2.120.0070.01116.98
7.2.110.0130.00616.91
7.2.100.0100.00316.68
7.2.90.0070.01117.05
7.2.80.0130.00316.87
7.2.70.0090.00316.96
7.2.60.0040.01216.68
7.2.50.0110.00716.94
7.2.40.0030.01016.91
7.2.30.0060.01016.91
7.2.20.0040.01516.92
7.2.10.0100.00016.89
7.2.00.0080.00817.97
7.1.330.0030.01315.68
7.1.320.0100.00315.85
7.1.310.0040.01115.54
7.1.300.0000.01715.79
7.1.290.0100.00615.66
7.1.280.0070.00415.65
7.1.270.0060.00315.76
7.1.260.0070.01015.61
7.1.250.0080.00815.36
7.1.70.0090.00617.22
7.1.60.0060.01319.32
7.1.50.0040.01816.92
7.1.00.0000.07722.48
7.0.200.0030.00616.46
7.0.140.0070.06722.12
7.0.80.0070.05019.89
7.0.70.0270.07019.97
7.0.60.0030.09020.07
7.0.50.0200.07020.42
7.0.40.0130.06020.10
7.0.30.0070.08319.98
7.0.20.0070.07320.18
7.0.10.0100.05320.20
7.0.00.0070.04020.11
5.6.280.0030.07321.05
5.6.230.0070.04020.70
5.6.220.0070.07720.59
5.6.210.0030.05720.47
5.6.200.0130.07321.12
5.6.190.0100.07321.13
5.6.180.0100.08321.13
5.6.170.0030.05321.01
5.6.160.0030.07021.20
5.6.150.0100.06721.13
5.6.140.0000.04721.05
5.6.130.0030.08721.15
5.6.120.0100.05021.13
5.6.110.0070.04721.03
5.6.100.0070.07021.06
5.6.90.0000.08721.13
5.6.80.0130.06320.44
5.6.70.0030.05320.45
5.6.60.0070.08320.47
5.6.50.0000.04320.51
5.6.40.0030.08320.40
5.6.30.0070.04320.54
5.6.20.0070.05020.33
5.6.10.0130.06720.41
5.6.00.0070.07720.50
5.5.370.0000.04720.35
5.5.360.0030.05320.46
5.5.350.0130.06720.46
5.5.340.0100.04320.93
5.5.330.0030.05020.85
5.5.320.0030.04320.91
5.5.310.0130.04320.87
5.5.300.0030.04721.01
5.5.290.0070.04020.68
5.5.280.0070.04020.91
5.5.270.0130.07320.93
5.5.260.0070.08720.67
5.5.250.0130.08020.77
5.5.240.0100.04020.23
5.5.230.0130.07720.19
5.5.220.0070.03720.28
5.5.210.0130.07320.21
5.5.200.0030.07020.24
5.5.190.0070.07020.19
5.5.180.0030.06020.20
5.5.160.0030.05720.18
5.5.150.0030.04020.30
5.5.140.0070.03720.18
5.5.130.0030.04020.31
5.5.120.0000.04720.02
5.5.110.0030.03720.16
5.5.100.0000.06720.12
5.5.90.0130.06320.07
5.5.80.0030.04720.20
5.5.70.0000.03719.98
5.5.60.0030.04320.06
5.5.50.0030.03320.10
5.5.40.0030.04020.19
5.5.30.0070.04320.15
5.5.20.0070.03720.18
5.5.10.0070.05020.05
5.5.00.0030.06320.14
5.4.450.0170.07019.40
5.4.440.0130.05319.44
5.4.430.0270.06319.23
5.4.420.0100.05319.22
5.4.410.0070.07019.23
5.4.400.0070.08018.89
5.4.390.0070.07319.05
5.4.380.0100.06018.99
5.4.370.0070.03719.06
5.4.360.0130.06019.15
5.4.350.0030.07719.12
5.4.340.0070.03718.89
5.4.320.0070.03719.22
5.4.310.0070.03719.12
5.4.300.0070.03319.22
5.4.290.0070.03319.17
5.4.280.0070.03719.22
5.4.270.0030.03019.06
5.4.260.0000.05018.99
5.4.250.0030.03319.03
5.4.240.0070.03318.96
5.4.230.0100.04718.97
5.4.220.0030.04018.98
5.4.210.0000.04018.93
5.4.200.0000.03319.09
5.4.190.0070.03318.96
5.4.180.0070.03318.98
5.4.170.0070.05319.25
5.4.160.0030.03019.08
5.4.150.0070.03718.95
5.4.140.0000.04016.41
5.4.130.0070.03316.33
5.4.120.0070.03316.33
5.4.110.0100.03316.49
5.4.100.0030.03716.29
5.4.90.0030.03716.45
5.4.80.0030.03016.34
5.4.70.0100.02316.43
5.4.60.0030.03016.25
5.4.50.0070.03016.34
5.4.40.0030.03316.37
5.4.30.0070.02716.41
5.4.20.0070.02716.31
5.4.10.0000.04016.42
5.4.00.0130.02015.73
5.3.290.0030.03714.61
5.3.280.0100.03014.43
5.3.270.0130.03714.60
5.3.260.0070.06014.47
5.3.250.0000.03314.61
5.3.240.0000.04014.57
5.3.230.0030.03714.54
5.3.220.0000.04014.57
5.3.210.0070.02714.41
5.3.200.0030.03014.52
5.3.190.0130.03014.43
5.3.180.0000.04014.45
5.3.170.0030.03014.43
5.3.160.0000.03314.54
5.3.150.0000.03714.52
5.3.140.0000.03314.56
5.3.130.0030.04014.54
5.3.120.0030.03014.52
5.3.110.0030.04014.46
5.3.100.0070.02714.00
5.3.90.0000.04013.84
5.3.80.0000.03314.01
5.3.70.0070.02713.93
5.3.60.0070.03013.87
5.3.50.0000.03713.95
5.3.40.0070.03013.84
5.3.30.0130.02013.90
5.3.20.0030.03313.68
5.3.10.0030.03713.52
5.3.00.0070.02713.64
5.2.170.0000.02710.96
5.2.160.0030.02310.99
5.2.150.0070.02711.15
5.2.140.0030.02311.10
5.2.130.0070.02311.07
5.2.120.0070.02010.95
5.2.110.0000.03010.97
5.2.100.0000.03011.09
5.2.90.0030.05311.18
5.2.80.0070.02710.95
5.2.70.0100.03310.94
5.2.60.0030.03710.86
5.2.50.0000.06710.89
5.2.40.0000.03710.97
5.2.30.0070.06011.02
5.2.20.0030.06310.80
5.2.10.0030.05010.91
5.2.00.0030.03010.80
5.1.60.0030.0509.99
5.1.50.0070.05010.02
5.1.40.0030.0509.86
5.1.30.0070.04010.25
5.1.20.0030.05710.29
5.1.10.0070.04310.15
5.1.00.0000.04710.16
5.0.50.0000.0238.40
5.0.40.0070.0308.48
5.0.30.0100.0538.24
5.0.20.0030.0438.31
5.0.10.0030.0238.17
5.0.00.0000.0538.25
4.4.90.0000.0407.28
4.4.80.0000.0207.28
4.4.70.0000.0177.28
4.4.60.0030.0237.28
4.4.50.0000.0277.28
4.4.40.0030.0307.28
4.4.30.0030.0407.28
4.4.20.0030.0337.28
4.4.10.0030.0177.28
4.4.00.0000.0477.28
4.3.110.0000.0337.28
4.3.100.0000.0377.28
4.3.90.0000.0337.28
4.3.80.0100.0507.28
4.3.70.0000.0277.28
4.3.60.0030.0177.28
4.3.50.0000.0277.28
4.3.40.0000.0407.28
4.3.30.0000.0377.28
4.3.20.0030.0377.28
4.3.10.0130.0207.28
4.3.00.0000.0337.28

preferences:
36.8 ms | 401 KiB | 5 Q