3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text ='ppOyiN99rlsXV2QCdkOSMNt3xM16hx4k1hYuVK9DSJE='; $salt ='whatever_you_want'; function simple_encrypt($text,$salt) { return trim(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $salt, $text, MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND)))); } function simple_decrypt($text,$salt) { return trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $salt, base64_decode($text), MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND))); } echo simple_encrypt(); ?>

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.60.0120.00316.50
8.3.50.0100.00718.30
8.3.40.0070.00718.63
8.3.30.0110.00418.72
8.3.20.0030.00620.19
8.3.10.0040.00423.57
8.3.00.0080.00019.29
8.2.180.0070.00716.75
8.2.170.0140.00422.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0050.00226.16
8.2.120.0080.00417.63
8.2.110.0030.00619.39
8.2.100.0040.00817.72
8.2.90.0040.00418.20
8.2.80.0030.00617.97
8.2.70.0040.00417.80
8.2.60.0100.00018.16
8.2.50.0050.00318.07
8.2.40.0030.00618.04
8.2.30.0000.00717.99
8.2.20.0000.00917.63
8.2.10.0040.00417.98
8.2.00.0050.00218.16
8.1.280.0120.00925.92
8.1.270.0080.00023.87
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0100.01022.42
8.1.230.0040.00720.88
8.1.220.0000.00817.77
8.1.210.0030.00518.84
8.1.200.0100.00017.25
8.1.190.0030.00617.22
8.1.180.0000.00818.10
8.1.170.0030.00618.52
8.1.160.0030.00618.91
8.1.150.0000.00718.83
8.1.140.0040.00419.44
8.1.130.0070.00017.64
8.1.120.0080.00017.43
8.1.110.0000.00717.30
8.1.100.0050.00217.42
8.1.90.0000.00817.29
8.1.80.0040.00417.38
8.1.70.0000.00717.44
8.1.60.0050.00317.54
8.1.50.0030.00617.53
8.1.40.0000.00817.58
8.1.30.0080.00317.59
8.1.20.0040.00417.66
8.1.10.0080.00017.45
8.1.00.0040.00417.46
8.0.300.0070.00019.93
8.0.290.0000.00816.63
8.0.280.0040.00418.27
8.0.270.0030.00317.15
8.0.260.0030.00317.23
8.0.250.0080.00016.96
8.0.240.0030.00316.86
8.0.230.0030.00316.93
8.0.220.0000.00716.88
8.0.210.0030.00316.74
8.0.200.0030.00316.85
8.0.190.0060.00316.84
8.0.180.0030.00716.81
8.0.170.0000.00716.94
8.0.160.0060.00316.87
8.0.150.0000.00816.70
8.0.140.0020.00516.88
8.0.130.0050.00013.34
8.0.120.0030.00516.89
8.0.110.0000.00716.87
8.0.100.0000.00716.96
8.0.90.0040.00416.77
8.0.80.0060.00916.88
8.0.70.0040.00416.70
8.0.60.0030.00516.79
8.0.50.0000.00716.78
8.0.30.0090.01017.04
8.0.20.0050.01317.40
8.0.10.0000.00716.90
8.0.00.0080.00816.64
7.4.330.0030.00315.08
7.4.320.0080.00016.40
7.4.300.0000.00616.51
7.4.290.0070.00016.68
7.4.280.0030.00316.62
7.4.270.0030.00316.57
7.4.260.0030.00316.51
7.4.250.0040.00416.55
7.4.240.0020.00516.46
7.4.230.0040.00416.55
7.4.220.0100.00716.52
7.4.210.0070.00816.58
7.4.200.0000.00716.66
7.4.160.0100.00716.36
7.4.150.0130.01017.40
7.4.140.0120.00717.86
7.4.130.0100.01016.75
7.4.120.0110.00816.40
7.4.110.0060.01216.52
7.4.100.0100.01016.53
7.4.90.0180.00616.56
7.4.80.0070.01019.39
7.4.70.0030.01316.57
7.4.60.0070.01016.44
7.4.50.0000.00816.44
7.4.40.0090.00916.51
7.4.30.0060.01616.48
7.4.00.0050.01314.87
7.3.330.0030.00313.33
7.3.320.0000.00613.23
7.3.310.0030.00316.30
7.3.300.0070.00016.28
7.3.290.0030.00316.28
7.3.280.0140.00616.28
7.3.270.0130.00317.40
7.3.260.0170.00016.52
7.3.240.0100.00716.54
7.3.230.0160.00616.46
7.3.210.0070.01016.36
7.3.200.0070.01016.51
7.3.190.0070.01116.39
7.3.180.0130.00316.65
7.3.170.0030.01316.42
7.3.160.0080.01016.58
7.3.120.0080.01114.88
7.3.110.0070.01014.80
7.3.100.0070.00614.61
7.3.90.0100.00714.88
7.3.80.0030.01014.93
7.3.70.0090.00514.87
7.3.60.0050.00914.63
7.3.50.0030.00814.65
7.3.40.0100.00714.70
7.3.30.0090.00614.60
7.3.20.0030.01016.57
7.3.10.0120.00316.67
7.3.00.0090.00616.56
7.2.330.0060.01316.29
7.2.320.0110.00516.51
7.2.310.0090.01216.25
7.2.300.0100.01016.20
7.2.290.0060.00916.38
7.2.250.0110.00814.87
7.2.240.0050.01214.89
7.2.230.0070.00914.94
7.2.220.0060.01215.06
7.2.210.0040.01214.94
7.2.200.0020.00814.88
7.2.190.0040.00814.85
7.2.180.0050.01014.71
7.2.170.0060.00714.97
7.2.60.0280.00716.68
7.2.00.0030.01018.98
7.1.330.0110.00315.52
7.1.320.0050.00815.81
7.1.310.0030.00815.55
7.1.300.0050.00815.47
7.1.290.0070.00515.54
7.1.280.0070.00915.46
7.1.270.0070.00615.57
7.1.260.0080.00315.43
7.1.200.0080.00815.48
7.1.100.0060.00617.77
7.1.70.0040.01216.82
7.1.60.0150.00919.43
7.1.50.0000.01116.51
7.1.00.0070.07322.25
7.0.200.0060.01014.90
7.0.60.0100.07019.94
7.0.50.0070.08317.96
7.0.40.0000.06020.29
7.0.30.0270.07020.33
7.0.20.0330.08320.29
7.0.10.0100.08320.15
7.0.00.0100.03320.27
5.6.280.0000.03721.12
5.6.210.0100.06320.71
5.6.200.0130.07018.19
5.6.190.0070.05320.65
5.6.180.3270.04320.59
5.6.170.0270.06020.50
5.6.160.0130.05320.64
5.6.150.0070.08318.20
5.6.140.0030.05718.28
5.6.130.0070.06718.21
5.6.120.0000.08021.13
5.6.110.0130.08021.09
5.6.100.0100.07721.11
5.6.90.0030.07721.17
5.6.80.0100.04320.55
5.5.350.3900.04320.36
5.5.340.0000.04018.09
5.5.330.0100.03320.30
5.5.320.0270.08020.34
5.5.310.0270.03720.42
5.5.300.0100.05718.02
5.5.290.0100.05018.09
5.5.280.0200.07020.86
5.5.270.0030.08720.84
5.5.260.0100.08020.88
5.5.250.0200.07320.55
5.5.240.0070.06020.45
5.4.450.0730.04019.64
5.4.440.0600.05319.68
5.4.430.0430.06719.29
5.4.420.0570.05719.53
5.4.410.0570.05719.48
5.4.400.0570.04319.18
5.4.390.0430.05719.31
5.4.380.0630.05018.97
5.4.370.0700.04719.12
5.4.360.0570.05719.03
5.4.350.0630.05718.81
5.4.340.0630.05319.04
5.4.320.0600.06019.07
5.4.310.0630.05318.95
5.4.300.0630.05019.14
5.4.290.0630.04719.11
5.4.280.0600.05319.25
5.4.270.0430.06019.28
5.4.260.0570.05318.98
5.4.250.0500.05319.02
5.4.240.0700.04719.16
5.4.230.0800.05319.32
5.4.220.0670.05719.20
5.4.210.0430.05719.20
5.4.200.0500.05019.28
5.4.190.0530.05719.34
5.4.180.0470.06719.24
5.4.170.0570.05319.11
5.4.160.0530.04719.05
5.4.150.0500.05318.79
5.4.140.0570.05316.63
5.4.130.0370.06016.62
5.4.120.0530.05716.52
5.4.110.0600.05716.70
5.4.100.0570.05316.62
5.4.90.0430.05316.68
5.4.80.0770.06316.63
5.4.70.0570.05316.61
5.4.60.0530.05316.40
5.4.50.0600.05016.65
5.4.40.0730.04316.57
5.4.30.0770.06016.47
5.4.20.0570.05316.58
5.4.10.0600.05016.65
5.4.00.0530.04315.82

preferences:
63.82 ms | 400 KiB | 5 Q