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_decrypt(); ?>

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.0060.00916.75
8.3.50.0100.00718.30
8.3.40.0070.00718.88
8.3.30.0070.00718.84
8.3.20.0000.00820.34
8.3.10.0000.00823.54
8.3.00.0050.00319.38
8.2.180.0110.00416.50
8.2.170.0110.01122.96
8.2.160.0040.01120.52
8.2.150.0090.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0090.00317.50
8.2.110.0060.00320.57
8.2.100.0080.00817.66
8.2.90.0040.00419.10
8.2.80.0080.00017.97
8.2.70.0080.00017.63
8.2.60.0040.00417.90
8.2.50.0030.00618.07
8.2.40.0000.00821.10
8.2.30.0030.00320.55
8.2.20.0030.00617.71
8.2.10.0000.00818.06
8.2.00.0030.00518.07
8.1.280.0200.00025.92
8.1.270.0050.00323.87
8.1.260.0030.00526.35
8.1.250.0050.00228.09
8.1.240.0100.00023.80
8.1.230.0040.00820.81
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0100.00017.35
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0060.00318.93
8.1.160.0040.00421.96
8.1.150.0000.00718.87
8.1.140.0040.00419.51
8.1.130.0030.00317.64
8.1.120.0070.00017.40
8.1.110.0040.00317.28
8.1.100.0070.00017.40
8.1.90.0040.00417.27
8.1.80.0000.00817.39
8.1.70.0050.00317.28
8.1.60.0040.00417.43
8.1.50.0060.00317.43
8.1.40.0030.00617.48
8.1.30.0000.00817.62
8.1.20.0000.00917.64
8.1.10.0000.00717.65
8.1.00.0030.00517.58
8.0.300.0050.00318.77
8.0.290.0020.00516.63
8.0.280.0000.00718.34
8.0.270.0000.00717.20
8.0.260.0030.00317.20
8.0.250.0000.00717.03
8.0.240.0000.00716.85
8.0.230.0000.00716.80
8.0.220.0030.00316.88
8.0.210.0040.00416.80
8.0.200.0060.00016.91
8.0.190.0030.00616.97
8.0.180.0000.00916.82
8.0.170.0040.00416.87
8.0.160.0000.00816.84
8.0.150.0040.00416.73
8.0.140.0030.00316.89
8.0.130.0000.00513.26
8.0.120.0000.00816.86
8.0.110.0030.00516.92
8.0.100.0070.00016.74
8.0.90.0070.00017.00
8.0.80.0070.00716.82
8.0.70.0080.00016.76
8.0.60.0000.00716.90
8.0.50.0050.00316.80
8.0.30.0120.00717.15
8.0.20.0110.00917.40
8.0.10.0040.00416.97
8.0.00.0090.00816.70
7.4.330.0000.00515.08
7.4.320.0000.00916.46
7.4.300.0060.00016.62
7.4.290.0000.00716.53
7.4.280.0000.00716.41
7.4.270.0030.00316.58
7.4.260.0070.00316.55
7.4.250.0080.00016.46
7.4.240.0040.00316.63
7.4.230.0050.00216.63
7.4.220.0000.01816.68
7.4.210.0080.00616.57
7.4.200.0030.00316.41
7.4.160.0110.00716.60
7.4.150.0140.00317.40
7.4.140.0110.01117.86
7.4.130.0100.00816.64
7.4.120.0060.01316.50
7.4.110.0030.01316.49
7.4.100.0100.01016.44
7.4.90.0060.01216.64
7.4.80.0080.00819.39
7.4.70.0100.00716.34
7.4.60.0090.00916.71
7.4.50.0050.00316.46
7.4.40.0100.00716.62
7.4.30.0130.00916.41
7.4.00.0090.00614.66
7.3.330.0030.00313.16
7.3.320.0000.00613.23
7.3.310.0070.00016.34
7.3.300.0040.00416.32
7.3.290.0040.00416.18
7.3.280.0100.01116.34
7.3.270.0130.00617.40
7.3.260.0130.00416.32
7.3.250.0070.01116.50
7.3.240.0070.00916.39
7.3.230.0140.00316.39
7.3.210.0030.01416.50
7.3.200.0120.00416.50
7.3.190.0160.00616.30
7.3.180.0080.00916.45
7.3.170.0060.00916.31
7.3.160.0040.01516.52
7.3.10.0030.01216.24
7.3.00.0130.00616.43
7.2.330.0100.00716.29
7.2.320.0100.01316.37
7.2.310.0120.01316.51
7.2.300.0080.00916.70
7.2.290.0110.00516.58
7.2.130.0130.01016.55
7.2.120.0120.00616.09
7.2.110.0070.00716.29
7.2.100.0180.00716.13
7.2.90.0150.00316.19
7.2.80.0170.01116.57
7.2.70.0120.00516.25
7.2.60.0090.00916.42
7.2.50.0200.00216.50
7.2.40.0080.00316.47
7.2.30.0280.00716.26
7.2.20.0080.01316.40
7.2.10.0180.00716.48
7.2.00.0130.00817.74
7.1.250.0160.00715.03
7.1.200.0110.00015.43
7.1.100.0060.00618.26
7.1.70.0070.00016.74
7.1.60.0130.01019.43
7.1.50.0030.01716.83
7.1.00.0000.08022.54
7.0.200.0230.00714.89
7.0.60.0030.05020.09
7.0.50.0030.08317.97
7.0.40.0070.07020.11
7.0.30.0200.04020.33
7.0.20.0400.07320.29
7.0.10.0070.08020.30
7.0.00.0100.05020.15
5.6.210.0100.08320.53
5.6.200.0170.05718.21
5.6.190.0030.07320.47
5.6.180.3770.04320.50
5.6.170.0200.05720.61
5.6.160.0100.08320.54
5.6.150.0030.08318.29
5.6.140.0030.05018.21
5.6.130.0100.07018.29
5.6.120.0100.07021.13
5.6.110.0130.07321.05
5.6.100.0100.03721.07
5.6.90.0030.07021.03
5.6.80.0070.03720.60
5.5.350.2900.03720.43
5.5.340.0100.03018.09
5.5.330.0000.04320.35
5.5.320.0230.08320.39
5.5.310.0200.05020.39
5.5.300.0000.08718.00
5.5.290.0130.05017.98
5.5.280.0130.05720.95
5.5.270.0030.04720.93
5.5.260.0070.06320.85
5.5.250.0000.06720.73
5.5.240.0100.07720.27
5.4.450.0030.06319.64
5.4.440.0270.05719.50
5.4.430.0570.05019.57
5.4.420.0530.05019.47
5.4.410.0700.04719.51
5.4.400.0730.04319.22
5.4.390.0670.06718.82
5.4.380.0670.06018.82
5.4.370.0570.05319.07
5.4.360.0470.05719.32
5.4.350.0500.05719.31
5.4.340.0570.04319.31
5.4.320.0600.08319.25
5.4.310.0670.07319.25
5.4.300.0430.07019.29
5.4.290.0100.05319.35
5.4.280.0100.06018.82
5.4.270.0330.07319.03
5.4.260.0730.04718.79
5.4.250.0500.07718.81
5.4.240.0570.08019.16
5.4.230.0530.07019.28
5.4.220.0630.06719.30
5.4.210.0530.06719.16
5.4.200.0330.04719.30
5.4.190.0130.05319.14
5.4.180.0000.07719.19
5.4.170.0400.07319.34
5.4.160.0400.06719.27
5.4.150.0030.06319.27
5.4.140.0030.05716.47
5.4.130.0130.05316.46
5.4.120.0130.08016.46
5.4.110.0370.05316.38
5.4.100.0130.05316.68
5.4.90.0070.05716.72
5.4.80.0130.05016.37
5.4.70.0100.05316.47
5.4.60.0230.04316.65
5.4.50.0130.07316.60
5.4.40.0170.07016.63
5.4.30.0330.05716.64
5.4.20.0230.06716.57
5.4.10.0200.05316.32
5.4.00.0100.05716.01

preferences:
64.88 ms | 400 KiB | 5 Q