3v4l.org

run code in 300+ PHP versions simultaneously
<?php function encrypt($text) { 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 decrypt($text) { return trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, str_pad('$2015', 16), base64_decode($text), MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND))); } $encryptedmessage = "vbmkp7o9RaIi3ntFjXrgvz+kitP0Po9P5G4vUG+EqUU="; echo decrypt($encryptedmessage);

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.0110.01116.75
8.3.50.0160.00221.19
8.3.40.0140.00718.96
8.3.30.0070.00718.75
8.3.20.0050.00320.34
8.3.10.0080.00023.53
8.3.00.0050.00322.43
8.2.180.0140.00716.75
8.2.170.0140.00022.96
8.2.160.0090.00621.95
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0060.00317.63
8.2.110.0050.00519.18
8.2.100.0080.00417.63
8.2.90.0040.00419.05
8.2.80.0100.00017.97
8.2.70.0060.00317.50
8.2.60.0000.00817.92
8.2.50.0000.00818.07
8.2.40.0060.00320.89
8.2.30.0000.00819.85
8.2.20.0050.00317.56
8.2.10.0040.00417.96
8.2.00.0040.00418.11
8.1.280.0100.00725.92
8.1.270.0030.00620.24
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0210.00023.82
8.1.230.0090.00317.53
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0000.00917.35
8.1.190.0050.00317.13
8.1.180.0050.00318.10
8.1.170.0000.00818.51
8.1.160.0040.00423.73
8.1.150.0030.00518.83
8.1.140.0040.00417.38
8.1.130.0030.00317.60
8.1.120.0040.00417.39
8.1.110.0040.00417.39
8.1.100.0000.00717.36
8.1.90.0050.00217.36
8.1.80.0030.00317.35
8.1.70.0070.00017.43
8.1.60.0050.00317.48
8.1.50.0040.00417.46
8.1.40.0080.00017.55
8.1.30.0040.00417.67
8.1.20.0050.00317.69
8.1.10.0000.00717.65
8.1.00.0020.00517.45
8.0.300.0000.00818.77
8.0.290.0000.00816.75
8.0.280.0000.00718.44
8.0.270.0030.00317.20
8.0.260.0000.00617.19
8.0.250.0040.00417.03
8.0.240.0030.00316.89
8.0.230.0000.00716.97
8.0.220.0000.00816.89
8.0.210.0060.00316.80
8.0.200.0000.00616.86
8.0.190.0000.00816.82
8.0.180.0000.00716.88
8.0.170.0060.00316.94
8.0.160.0000.00716.89
8.0.150.0070.00016.74
8.0.140.0040.00416.92
8.0.130.0000.00613.36
8.0.120.0040.00416.76
8.0.110.0040.00416.82
8.0.100.0040.00416.68
8.0.90.0040.00416.94
8.0.80.0060.01016.89
8.0.70.0040.00416.72
8.0.60.0050.00316.74
8.0.50.0070.00016.94
8.0.30.0080.00817.24
8.0.20.0060.01317.40
8.0.10.0040.00417.04
8.0.00.0050.01116.66
7.4.330.0000.00515.14
7.4.320.0070.00016.40
7.4.300.0070.00016.61
7.4.290.0030.00316.61
7.4.280.0060.00316.64
7.4.270.0030.00316.60
7.4.260.0030.00316.59
7.4.250.0040.00416.46
7.4.240.0000.00716.47
7.4.230.0030.00316.67
7.4.220.0090.01816.63
7.4.210.0120.00316.38
7.4.200.0040.00416.41
7.4.160.0090.00616.52
7.4.150.0060.01217.40
7.4.140.0100.01217.86
7.4.130.0120.00816.39
7.4.120.0050.01216.43
7.4.110.0070.01016.43
7.4.100.0100.01316.58
7.4.90.0140.00316.66
7.4.80.0050.01419.39
7.4.70.0120.00316.62
7.4.60.0100.00616.55
7.4.50.0000.00816.59
7.4.40.0120.00416.60
7.4.30.0060.01316.63
7.4.00.0120.00414.77
7.3.330.0000.00613.16
7.3.320.0060.00013.18
7.3.310.0060.00316.17
7.3.300.0000.00716.31
7.3.290.0090.00716.31
7.3.280.0090.00916.30
7.3.270.0130.00917.40
7.3.260.0140.00416.53
7.3.250.0100.00916.46
7.3.240.0110.00716.41
7.3.230.0080.01116.39
7.3.210.0080.00816.52
7.3.200.0130.00316.36
7.3.190.0060.01016.24
7.3.180.0100.00716.32
7.3.170.0100.00716.62
7.3.160.0140.00416.53
7.2.330.0060.01216.50
7.2.320.0120.01216.45
7.2.310.0030.01616.70
7.2.300.0040.01816.65
7.2.290.0110.01216.67
7.2.60.0070.01016.84
7.2.00.0110.00719.29
7.1.200.0040.01115.46
7.1.100.0150.00017.84
7.1.70.0000.00816.83
7.1.60.0040.02219.18
7.1.50.0090.01216.98
7.1.00.0000.07722.45
7.0.200.0200.00316.26
7.0.60.0000.08720.03
7.0.50.0100.03317.89
7.0.40.0030.04320.13
7.0.30.2770.05020.13
7.0.20.0370.07320.30
7.0.10.0270.08020.17
7.0.00.0070.09020.14
5.6.280.0000.03320.93
5.6.210.0100.08320.48
5.6.200.0100.03318.20
5.6.190.0130.08320.52
5.6.180.0070.08020.45
5.6.170.0230.03320.53
5.6.160.0130.07720.59
5.6.150.0070.07018.21
5.6.140.0070.04318.21
5.6.130.0100.07318.31
5.6.120.0030.07321.06
5.6.110.0100.04020.95
5.6.100.0170.07021.07
5.6.90.0030.07321.21
5.6.80.0130.06320.45
5.6.70.0330.06320.49
5.5.350.0070.03320.39
5.5.340.0130.07018.00
5.5.330.0030.09020.43
5.5.320.0030.08320.34
5.5.310.0200.04020.41
5.5.300.0170.07018.00
5.5.290.0070.08318.11
5.5.280.0030.08720.88
5.5.270.0130.07720.80
5.5.260.0100.08020.96
5.5.250.0070.03720.87
5.5.240.0100.05720.13
5.4.450.0770.06019.76
5.4.440.1000.06019.50
5.4.430.0030.06319.66
5.4.420.0600.05719.20
5.4.410.1070.04719.54
5.4.400.0900.05019.06
5.4.390.0730.06019.43
5.4.380.0800.05719.20
5.4.370.1070.05319.05
5.4.360.0970.05019.34
5.4.350.0830.05319.28
5.4.340.0870.05718.88
5.4.320.0830.06019.11
5.4.310.0700.07019.15
5.4.300.1130.07319.30
5.4.290.0770.05318.89
5.4.280.0630.06719.30
5.4.270.0570.06319.12
5.4.260.0730.05319.34
5.4.250.0770.05319.04
5.4.240.0230.06719.04
5.4.230.0730.05719.33
5.4.220.0970.06719.20
5.4.210.0870.05719.03
5.4.200.0900.05316.91
5.4.190.0770.06719.06
5.4.180.1000.07019.08
5.4.170.1000.06019.07
5.4.160.0600.05319.00
5.4.150.0070.05718.95
5.4.140.0530.05716.63
5.4.130.0670.05316.52
5.4.120.0000.06316.45
5.4.110.0700.05316.50
5.4.100.0670.04716.63
5.4.90.0870.04716.44
5.4.80.1000.05316.59
5.4.70.0630.05016.41
5.4.60.0000.07716.63
5.4.50.0070.06316.42
5.4.40.0030.04716.35
5.4.30.0230.04316.62
5.4.20.0370.03716.51
5.4.10.0330.05316.55

preferences:
56 ms | 401 KiB | 5 Q