3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Clear = "Klartext"; for ($i=50; $i < 500; $i += 50) { $crypted = fnEncrypt($Clear, str_repeat('a', $i)); echo "Encrypred: ".$crypted."</br>"; $newClear = fnDecrypt($crypted, str_repeat('a', $i)); echo "Decrypred: ".$newClear."</br>"; } function fnEncrypt($sValue, $sSecretKey) { return rtrim( base64_encode( mcrypt_encrypt( MCRYPT_RIJNDAEL_256, $sSecretKey, $sValue, MCRYPT_MODE_ECB, mcrypt_create_iv( mcrypt_get_iv_size( MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB ), MCRYPT_RAND) ) ), "\0" ); } function fnDecrypt($sValue, $sSecretKey) { return rtrim( mcrypt_decrypt( MCRYPT_RIJNDAEL_256, $sSecretKey, base64_decode($sValue), MCRYPT_MODE_ECB, mcrypt_create_iv( mcrypt_get_iv_size( MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB ), MCRYPT_RAND ) ), "\0" ); }

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)
8.3.70.0080.00816.75
8.3.60.0090.00918.18
8.3.50.0180.00221.14
8.3.40.0150.00018.83
8.3.30.0130.00020.35
8.3.20.0040.00420.38
8.3.10.0080.00021.85
8.3.00.0080.00022.52
8.2.180.0060.00918.42
8.2.170.0040.01222.96
8.2.160.0100.00322.26
8.2.150.0050.00524.18
8.2.140.0040.00424.66
8.2.130.0110.00726.16
8.2.120.0070.00020.66
8.2.110.0000.01022.11
8.2.100.0100.00017.91
8.2.90.0030.00518.09
8.2.80.0080.00019.32
8.2.70.0060.00617.63
8.2.60.0080.00017.80
8.2.50.0000.00818.07
8.2.40.0000.00818.22
8.2.30.0000.00819.35
8.2.20.0040.00417.65
8.2.10.0000.00917.86
8.2.00.0060.00317.63
8.1.280.0100.00325.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0050.00519.14
8.1.230.0070.00720.97
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00717.35
8.1.190.0000.00717.53
8.1.180.0000.00818.10
8.1.170.0040.00418.55
8.1.160.0050.00218.88
8.1.150.0030.00918.50
8.1.140.0040.00417.33
8.1.130.0070.00017.83
8.1.120.0000.00717.40
8.1.110.0000.00717.29
8.1.100.0050.00317.39
8.1.90.0040.00417.46
8.1.80.0000.00717.27
8.1.70.0040.00417.25
8.1.60.0030.00617.62
8.1.50.0070.00017.58
8.1.40.0020.00517.55
8.1.30.0050.00217.46
8.1.20.0000.00817.66
8.1.10.0000.00817.48
8.1.00.0000.01117.55
8.0.300.0000.00720.16
8.0.290.0040.00417.05
8.0.280.0070.00018.37
8.0.270.0000.00717.29
8.0.260.0030.00316.74
8.0.250.0000.00716.93
8.0.240.0040.00416.90
8.0.230.0040.00317.00
8.0.220.0000.00716.81
8.0.210.0050.00316.92
8.0.200.0030.00616.84
8.0.190.0000.00916.85
8.0.180.0040.00416.88
8.0.170.0080.00016.91
8.0.160.0000.00716.89
8.0.150.0030.00316.91
8.0.140.0030.00316.72
8.0.130.0070.00313.38
8.0.120.0000.00716.89
8.0.110.0050.00316.91
8.0.100.0000.00716.69
8.0.90.0050.00316.86
8.0.80.0100.01316.89
8.0.70.0050.00216.79
8.0.60.0000.00716.82
8.0.50.0040.00416.82
8.0.30.0120.00617.23
8.0.20.0120.01017.40
8.0.10.0040.00417.02
8.0.00.0090.01516.80
7.4.330.0000.00615.00
7.4.320.0040.00416.46
7.4.300.0030.00316.46
7.4.290.0030.00316.52
7.4.280.0070.00016.64
7.4.270.0000.00616.44
7.4.260.0030.00313.30
7.4.250.0030.00316.40
7.4.240.0020.00516.51
7.4.230.0030.00316.35
7.4.220.0120.00616.54
7.4.210.0040.01116.61
7.4.200.0070.00016.49
7.4.190.0040.00416.67
7.4.160.0040.01216.36
7.4.150.0130.00617.40
7.4.140.0070.01317.86
7.4.130.0060.01116.49
7.4.120.0100.00716.50
7.4.110.0030.01316.50
7.4.100.0060.01116.62
7.4.90.0100.00716.53
7.4.80.0090.00919.39
7.4.70.0080.01416.54
7.4.60.0070.01016.46
7.4.50.0000.00616.43
7.4.40.0030.01222.77
7.4.30.0080.01016.60
7.4.00.0070.01015.14
7.3.330.0000.00513.33
7.3.320.0050.00013.36
7.3.310.0040.00416.40
7.3.300.0070.00016.36
7.3.290.0100.00316.39
7.3.280.0110.00516.35
7.3.270.0070.01017.40
7.3.260.0060.01216.44
7.3.250.0110.01016.42
7.3.240.0110.00816.66
7.3.230.0160.00016.39
7.3.210.0100.00616.37
7.3.200.0130.00319.39
7.3.190.0150.00816.52
7.3.180.0060.00916.45
7.3.170.0030.01316.29
7.3.160.0130.00316.63
7.3.120.0070.00914.83
7.3.110.0070.01015.00
7.3.100.0040.01115.00
7.3.90.0000.01514.68
7.3.80.0040.01115.00
7.3.70.0040.01114.93
7.3.60.0040.01114.66
7.3.50.0000.01514.92
7.3.40.0000.01214.74
7.3.30.0080.00814.72
7.3.20.0040.00416.59
7.3.10.0100.00316.56
7.3.00.0060.00616.48
7.2.330.0120.01216.53
7.2.320.0170.00016.41
7.2.310.0140.00916.46
7.2.300.0080.00816.50
7.2.290.0060.00916.45
7.2.250.0030.01414.85
7.2.240.0070.00714.88
7.2.230.0120.00314.66
7.2.220.0070.00715.02
7.2.210.0120.00314.91
7.2.200.0060.00614.95
7.2.190.0100.00315.04
7.2.180.0060.00914.91
7.2.170.0080.00814.87
7.2.130.0100.00317.08
7.2.120.0050.00516.62
7.2.110.0050.00816.66
7.2.100.0060.00616.75
7.2.90.0100.00316.76
7.2.80.0060.00916.66
7.2.70.0030.00616.63
7.2.60.0070.00516.70
7.2.50.0030.00916.79
7.2.40.0030.01416.54
7.2.30.0040.01416.84
7.2.20.0040.00716.46
7.2.10.0030.00616.84
7.2.00.0000.01217.76
7.1.330.0080.00815.98
7.1.320.0000.01415.97
7.1.310.0100.00315.88
7.1.300.0000.01415.73
7.1.290.0050.00415.93
7.1.280.0040.01115.92
7.1.270.0120.00315.81
7.1.260.0040.01215.71
7.1.250.0030.00915.78
7.1.200.0060.00615.88
7.1.100.0040.01118.06
7.1.70.0060.00616.90
7.1.60.0100.01019.32
7.1.50.0000.02316.83
7.1.00.0030.07722.44
7.0.200.0000.00716.52
7.0.140.0030.07322.04
7.0.100.0000.04320.18
7.0.90.0100.04320.14
7.0.80.0100.05719.94
7.0.70.0130.03019.95
7.0.60.0070.03719.98
7.0.50.0200.03722.19
7.0.40.0030.08320.21
7.0.30.0130.07720.15
7.0.20.0070.08320.11
7.0.10.0130.07020.19
7.0.00.0130.08320.17
5.6.280.0030.07320.84
5.6.250.0030.04020.64
5.6.240.0070.03720.52
5.6.230.0070.04020.52
5.6.220.0000.06320.67
5.6.210.0030.05320.59
5.6.200.0030.04321.22
5.6.190.0070.08721.14
5.6.180.0130.07321.12
5.6.170.0130.04321.11
5.6.160.0100.08321.04
5.6.150.0030.07321.12
5.6.140.0170.07321.20
5.6.130.0170.07321.19
5.6.120.0030.09021.09
5.6.110.0130.04721.08
5.6.100.0070.08321.15
5.6.90.0070.08021.03
5.6.80.0030.08020.52
5.6.70.0100.07720.42
5.6.60.0070.07720.48
5.6.50.0100.04320.42
5.6.40.0170.06720.55
5.6.30.0100.06720.45
5.6.20.0030.08320.44
5.6.10.0100.04320.50
5.6.00.0030.07720.43
5.5.380.0000.04720.39
5.5.370.0070.03320.43
5.5.360.0000.05020.40
5.5.350.0070.03720.43
5.5.340.0070.04021.00
5.5.330.0130.06720.88
5.5.320.0030.06020.82
5.5.310.0070.08320.99
5.5.300.0030.09020.82
5.5.290.0170.07720.89
5.5.280.0130.07720.90
5.5.270.0030.08320.88
5.5.260.0070.08020.97
5.5.250.0130.06320.83
5.5.240.0100.03020.30
5.5.230.0070.06020.38
5.5.220.0170.07020.27
5.5.210.0000.07320.23
5.5.200.0100.07720.09
5.5.190.0030.07720.27
5.5.180.0070.05320.08
5.5.160.0030.08020.24
5.5.150.0170.07020.17
5.5.140.0030.08020.08
5.5.130.0100.06720.17
5.5.120.0070.07320.26
5.5.110.0030.08720.34
5.5.100.0030.08020.16
5.5.90.0100.07320.20
5.5.80.0070.08020.03
5.5.70.0100.07720.14
5.5.60.0100.07320.14
5.5.50.0100.07320.05
5.5.40.0100.06020.18
5.5.30.0070.06020.18
5.5.20.0100.07320.23
5.5.10.0170.09320.09
5.5.00.0000.07020.05
5.4.450.0070.04319.54
5.4.440.0170.06719.29
5.4.430.0030.07019.41
5.4.420.0070.08019.51
5.4.410.0030.05019.44
5.4.400.0070.08019.08
5.4.390.0030.06719.20
5.4.380.0070.07019.14
5.4.370.0030.07319.19
5.4.360.0170.06719.10
5.4.350.0030.07018.96
5.4.340.0070.06718.96
5.4.320.0100.06319.16
5.4.310.0030.05318.92
5.4.300.0030.07318.96
5.4.290.0070.08019.18
5.4.280.0030.05018.95
5.4.270.0100.07319.08
5.4.260.0130.06719.24
5.4.250.0030.04019.18
5.4.240.0070.07319.18
5.4.230.0030.07719.18
5.4.220.0130.03719.15
5.4.210.0100.04319.10
5.4.200.0130.04719.27
5.4.190.0200.06718.95
5.4.180.0100.04318.95
5.4.170.0030.05019.07
5.4.160.0030.08018.94
5.4.150.0070.07318.94
5.4.140.0000.06716.49
5.4.130.0100.06716.42
5.4.120.0100.03016.42
5.4.110.0030.07316.42
5.4.100.0000.04716.43
5.4.90.0030.05316.54
5.4.80.0070.07716.61
5.4.70.0000.06016.56
5.4.60.0070.08716.41
5.4.50.0030.08016.41
5.4.40.0100.07716.50
5.4.30.0200.03716.50
5.4.20.0130.06316.40
5.4.10.0130.06316.39
5.4.00.0030.08015.88
5.3.290.0030.07714.81
5.3.280.0030.04314.70
5.3.270.0100.06014.64
5.3.260.0030.06014.60
5.3.250.0030.07314.69
5.3.240.0030.03714.73
5.3.230.0070.07314.71
5.3.220.0030.04014.71
5.3.210.0030.07714.56
5.3.200.0070.07014.52
5.3.190.0030.04014.46
5.3.180.0070.03314.66
5.3.170.0070.07314.64
5.3.160.0170.05314.58
5.3.150.0070.08314.71
5.3.140.0070.04314.63
5.3.130.0070.04714.61
5.3.120.0170.07314.55
5.3.110.0130.06014.54
5.3.100.0030.04714.08
5.3.90.0030.07014.13
5.3.80.0130.06014.15
5.3.70.0130.06314.14
5.3.60.0100.06314.04
5.3.50.0030.07314.07
5.3.40.0070.04313.94
5.3.30.0100.06714.05
5.3.20.0030.06713.71
5.3.10.0070.06313.65
5.3.00.0030.06713.58
5.2.170.0030.06011.07
5.2.160.0030.04311.21
5.2.150.0030.06311.21
5.2.140.0070.02711.16
5.2.130.0070.06011.02
5.2.120.0030.04011.04
5.2.110.0030.05711.18
5.2.100.0000.04311.24
5.2.90.0100.03011.25
5.2.80.0030.03011.19
5.2.70.0070.03010.97
5.2.60.0030.05011.09
5.2.50.0030.05010.94
5.2.40.0070.05311.05
5.2.30.0070.07310.96
5.2.20.0030.06010.98
5.2.10.0100.05010.90
5.2.00.0070.06310.87
5.1.60.0070.04310.09
5.1.50.0100.0509.89
5.1.40.0030.03710.00
5.1.30.0100.02010.48
5.1.20.0030.04710.48
5.1.10.0000.05010.20
5.1.00.0070.03710.14
5.0.50.0030.0338.40
5.0.40.0070.0338.51
5.0.30.0000.0438.28
5.0.20.0100.0378.10
5.0.10.0030.0438.19
5.0.00.0000.0378.10
4.4.90.0070.0308.10
4.4.80.0030.0178.10
4.4.70.0030.0308.10
4.4.60.0030.0238.10
4.4.50.0030.0308.10
4.4.40.0000.0408.10
4.4.30.0000.0208.10
4.4.20.0070.0308.10
4.4.10.0070.0338.10
4.4.00.0100.0238.10
4.3.110.0030.0308.10
4.3.100.0000.0378.10
4.3.90.0100.0308.10
4.3.80.0000.0408.10
4.3.70.0000.0338.10
4.3.60.0030.0338.10
4.3.50.0000.0338.10
4.3.40.0030.0408.10
4.3.30.0100.0308.10
4.3.20.0000.0308.10
4.3.10.0030.0278.10
4.3.00.0070.0308.10

preferences:
35.32 ms | 401 KiB | 5 Q