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"; echo "<P>Message: $message\n"; $blockSize = mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC); $padding = $blockSize - (strlen($message) % $blockSize); $message .= str_repeat(chr($padding), $padding); echo "<P>Message 1: $message\n"; 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); $newmessage = base64_encode($encryptedMessage); echo "<P>newmessage: $newmessage\n"; $hmac = hash_hmac("sha1", $encryptedMessage.$iv, $checksumKey, true); $authorizationToken = base64_encode($encryptedMessage.$iv.$hmac); echo "<P>authorizationToken: $authorizationToken \n"; ?>

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.10.0060.01215.27
7.4.00.0090.00715.01
7.3.130.0130.00614.95
7.3.120.0120.00714.95
7.3.110.0070.01014.87
7.3.100.0120.00715.09
7.3.90.0040.01014.80
7.3.80.0070.00814.91
7.3.70.0080.00314.94
7.3.60.0060.00714.71
7.3.50.0070.00714.88
7.3.40.0050.00914.82
7.3.30.0100.00014.71
7.3.20.0020.01216.49
7.3.10.0050.01116.62
7.3.00.0060.00516.71
7.2.260.0110.00715.09
7.2.250.0140.00515.04
7.2.240.0030.01214.96
7.2.230.0100.00815.26
7.2.220.0070.00815.24
7.2.210.0050.01115.21
7.2.200.0050.00815.07
7.2.190.0050.01015.04
7.2.180.0060.00614.79
7.2.170.0030.01215.04
7.2.160.0110.00715.01
7.2.150.0100.00316.65
7.2.140.0000.01417.10
7.2.130.0090.00916.93
7.2.120.0070.00717.04
7.2.110.0040.00816.71
7.2.100.0090.00616.96
7.2.90.0000.01016.99
7.2.80.0040.01116.90
7.2.70.0000.00917.07
7.2.60.0130.00316.81
7.2.50.0060.00917.04
7.2.40.0100.00317.15
7.2.30.0040.00716.82
7.2.20.0070.01116.87
7.2.10.0070.01016.92
7.2.00.0050.00918.31
7.1.330.0050.01115.74
7.1.320.0030.01015.76
7.1.310.0090.00715.85
7.1.300.0050.01115.91
7.1.290.0130.00015.47
7.1.280.0050.01015.69
7.1.270.0070.00615.80
7.1.260.0050.00715.81
7.1.250.0100.00315.96
7.1.240.0060.00615.68
7.1.230.0000.01015.78
7.1.220.0090.00315.86
7.1.210.0040.00715.91
7.1.200.0060.00615.91
7.1.190.0000.01115.82
7.1.180.0030.00716.00
7.1.170.0060.00615.89
7.1.160.0040.01115.90
7.1.150.0000.01115.85
7.1.140.0070.00715.69
7.1.130.0030.01215.83
7.1.120.0030.01015.75
7.1.110.0040.01115.98
7.1.100.0050.00515.88
7.1.90.0030.01015.86
7.1.80.0030.00915.92
7.1.70.0060.00416.30
7.1.60.0050.01417.56
7.1.50.0020.01316.39
7.1.40.0070.00715.74
7.1.30.0070.00715.64
7.1.20.0070.01015.83
7.1.10.0100.00015.91
7.1.00.0050.04319.10
7.0.330.0080.00615.38
7.0.320.0040.00415.57
7.0.310.0110.00415.34
7.0.300.0070.00715.54
7.0.290.0000.01415.52
7.0.280.0000.01115.49
7.0.270.0100.00315.11
7.0.260.0030.00715.38
7.0.250.0070.00815.51
7.0.240.0060.00615.29
7.0.230.0060.00815.53
7.0.220.0000.01215.16
7.0.210.0040.00715.41
7.0.200.0060.00716.11
7.0.190.0030.00515.23
7.0.180.0000.01015.38
7.0.170.0060.00615.41
7.0.160.0070.00715.27
7.0.150.0000.01415.54
7.0.140.0020.04218.73
7.0.130.0070.00715.20
7.0.120.0040.00715.28
7.0.110.0030.00915.24
7.0.100.0080.00415.40
7.0.90.0000.01515.41
7.0.80.0340.04017.77
7.0.70.0130.04817.82
7.0.60.0160.04317.75
7.0.50.0110.02518.08
7.0.40.0080.04516.85
7.0.30.0050.05116.62
7.0.20.0050.02516.83
7.0.10.0050.03416.75
7.0.00.0030.04516.80
5.6.400.0070.00714.29
5.6.390.0000.01214.42
5.6.380.0070.00714.23
5.6.370.0060.00314.59
5.6.360.0100.00314.27
5.6.350.0030.00914.33
5.6.340.0000.01214.50
5.6.330.0030.00914.54
5.6.320.0080.00314.11
5.6.310.0030.01014.66
5.6.300.0040.00814.28
5.6.290.0060.00614.39
5.6.280.0000.04317.84
5.6.270.0060.00314.33
5.6.260.0060.00614.46
5.6.250.0060.00914.29
5.6.240.0100.00714.14
5.6.230.0100.04817.45
5.6.220.0140.02417.37
5.6.210.0100.03917.40
5.6.200.0130.03317.70
5.6.190.0030.05317.74
5.6.180.0150.02017.67
5.6.170.0070.04617.79
5.6.160.0120.03217.66
5.6.150.0070.04617.62
5.6.140.0030.04817.84
5.6.130.0100.03317.74
5.6.120.0070.04017.62
5.6.110.0080.04517.73
5.6.100.0120.02917.63
5.6.90.0120.04217.72
5.6.80.0050.04417.24
5.6.70.0050.02817.24
5.6.60.0050.04217.36
5.6.50.0100.02217.42
5.6.40.0100.03617.38
5.6.30.0070.02917.37
5.6.20.0100.04017.36
5.6.10.0050.04717.43
5.6.00.0100.02317.39
5.5.380.0030.00614.29
5.5.370.0110.04217.37
5.5.360.0080.03917.40
5.5.350.0080.02717.42
5.5.340.0100.04017.47
5.5.330.0090.02417.38
5.5.320.0050.04517.54
5.5.310.0070.03017.59
5.5.300.0050.03417.57
5.5.290.0120.02717.71
5.5.280.0070.04617.46
5.5.270.0060.04317.67
5.5.260.0100.04017.57
5.5.250.0050.02917.55
5.5.240.0050.04517.12
5.5.230.0070.02517.24
5.5.220.0030.04417.33
5.5.210.0050.04217.24
5.5.200.0120.04017.24
5.5.190.0050.03917.23
5.5.180.0070.04317.35
5.5.170.0000.01114.18
5.5.160.0050.03017.33
5.5.150.0080.03717.14
5.5.140.0100.03817.34
5.5.130.0060.04417.26
5.5.120.0120.04217.16
5.5.110.0120.02317.30
5.5.100.0080.04017.12
5.5.90.0050.02617.26
5.5.80.0060.02317.09
5.5.70.0100.04117.11
5.5.60.0070.02517.13
5.5.50.0070.02317.03
5.5.40.0030.03517.12
5.5.30.0080.03017.18
5.5.20.0070.02017.01
5.5.10.0050.02217.00
5.5.00.0060.02217.19
5.4.450.0070.02715.67
5.4.440.0070.04515.67
5.4.430.0120.03815.57
5.4.420.0070.04015.65
5.4.410.0050.02715.59
5.4.400.0060.03915.58
5.4.390.0070.03315.41
5.4.380.0050.04415.41
5.4.370.0030.04315.45
5.4.360.0060.04015.52
5.4.350.0090.03515.41
5.4.340.0030.03615.48
5.4.330.0030.01011.91
5.4.320.0020.02415.42
5.4.310.0130.02815.50
5.4.300.0050.02715.44
5.4.290.0050.04415.39
5.4.280.0070.03915.48
5.4.270.0030.04315.41
5.4.260.0110.03015.49
5.4.250.0000.04015.41
5.4.240.0070.03715.38
5.4.230.0120.03515.40
5.4.220.0050.03815.50
5.4.210.0060.03115.51
5.4.200.0070.03615.45
5.4.190.0000.03915.38
5.4.180.0050.03815.57
5.4.170.0050.02315.44
5.4.160.0070.02715.50
5.4.150.0110.03815.50
5.4.140.0030.03714.06
5.4.130.0070.03014.17
5.4.120.0090.01814.16
5.4.110.0070.03914.10
5.4.100.0080.03814.16
5.4.90.0090.03514.13
5.4.80.0050.02314.13
5.4.70.0090.02814.13
5.4.60.0080.03314.12
5.4.50.0030.03914.09
5.4.40.0050.01814.18
5.4.30.0070.02714.12
5.4.20.0050.03814.13
5.4.10.0050.04214.12
5.4.00.0070.03513.85
5.3.290.0070.08314.53
5.3.280.0070.07714.59
5.3.270.0030.03314.61
5.3.260.0130.03714.46
5.3.250.0100.06714.48
5.3.240.0130.06714.61
5.3.230.0070.04314.59
5.3.220.0030.06014.44
5.3.210.0130.06014.54
5.3.200.0070.03014.57
5.3.190.0070.06714.52
5.3.180.0130.05014.43
5.3.170.0100.05014.39
5.3.160.0030.07314.41
5.3.150.0070.06314.54
5.3.140.0030.04014.53
5.3.130.0100.07714.55
5.3.120.0000.08014.55
5.3.110.0130.07014.50
5.3.100.0000.06013.96
5.3.90.0070.06014.02
5.3.80.0030.05014.01
5.3.70.0170.06313.88
5.3.60.0030.07713.97
5.3.50.0030.05713.91
5.3.40.0030.07313.81
5.3.30.0030.07313.77
5.3.20.0030.07713.48
5.3.10.0070.07013.65
5.3.00.0070.06713.56
5.2.170.0100.06011.15
5.2.160.0030.06011.10
5.2.150.0030.05011.15
5.2.140.0000.06311.21
5.2.130.0070.04011.14
5.2.120.0130.06310.96
5.2.110.0000.06011.09
5.2.100.0100.05710.97
5.2.90.0030.04710.95
5.2.80.0030.06711.09
5.2.70.0130.05011.16
5.2.60.0070.05311.13
5.2.50.0030.07311.02
5.2.40.0030.06011.00
5.2.30.0000.04311.03
5.2.20.0070.05311.02
5.2.10.0030.06010.96
5.2.00.0100.05710.72
5.1.60.0030.04710.01
5.1.50.0030.04010.00
5.1.40.0030.05010.08
5.1.30.0000.06310.33
5.1.20.0030.05710.43
5.1.10.0070.04310.17
5.1.00.0030.03010.13
5.0.50.0000.0508.61
5.0.40.0030.0438.40
5.0.30.0030.0578.34
5.0.20.0070.0378.11
5.0.10.0070.0408.18
5.0.00.0070.0508.16
4.4.90.0070.0177.39
4.4.80.0130.0277.39
4.4.70.0000.0337.39
4.4.60.0030.0307.39
4.4.50.0030.0337.39
4.4.40.0030.0337.39
4.4.30.0000.0407.39
4.4.20.0030.0277.39
4.4.10.0000.0307.39
4.4.00.0000.0307.39
4.3.110.0070.0237.39
4.3.100.0000.0377.39
4.3.90.0030.0337.39
4.3.80.0000.0477.39
4.3.70.0070.0277.39
4.3.60.0000.0377.39
4.3.50.0030.0237.39
4.3.40.0030.0507.39
4.3.30.0030.0237.39
4.3.20.0030.0207.39
4.3.10.0070.0237.39
4.3.00.0000.0377.39

preferences:
35.3 ms | 401 KiB | 5 Q