3v4l.org

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

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.40.0040.01418.70
8.3.30.0070.01018.96
8.3.20.0030.01420.04
8.3.10.0120.00623.65
8.3.00.0050.00320.97
8.2.170.0150.00022.96
8.2.160.0030.01020.53
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0140.00326.16
8.2.120.0040.00420.77
8.2.110.0000.00922.16
8.2.100.0080.00417.91
8.2.90.0000.00819.09
8.2.80.0060.00317.97
8.2.70.0030.00617.63
8.2.60.0030.00917.75
8.2.50.0030.00618.07
8.2.40.0000.00819.72
8.2.30.0050.00318.19
8.2.20.0080.00017.58
8.2.10.0070.00017.96
8.2.00.0070.00017.61
8.1.270.0000.00823.83
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0040.00421.92
8.1.230.0040.00719.11
8.1.220.0000.00817.79
8.1.210.0030.00518.77
8.1.200.0030.00617.23
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0030.00618.51
8.1.160.0040.00421.91
8.1.150.0040.00418.52
8.1.140.0000.00817.38
8.1.130.0000.00617.82
8.1.120.0050.00317.30
8.1.110.0030.00517.36
8.1.100.0070.00017.35
8.1.90.0040.00417.35
8.1.80.0000.00717.29
8.1.70.0000.00717.39
8.1.60.0060.00317.42
8.1.50.0030.00517.45
8.1.40.0050.00317.53
8.1.30.0030.00517.66
8.1.20.0040.00417.54
8.1.10.0040.00417.43
8.1.00.0000.00717.44
8.0.300.0030.00518.77
8.0.290.0000.00716.90
8.0.280.0030.00518.25
8.0.270.0000.00717.18
8.0.260.0090.00017.20
8.0.250.0030.00317.00
8.0.240.0030.00316.97
8.0.230.0070.00016.96
8.0.220.0040.00416.83
8.0.210.0070.00316.80
8.0.200.0000.00616.97
8.0.190.0050.00317.00
8.0.180.0070.00016.95
8.0.170.0040.00416.80
8.0.160.0080.00016.78
8.0.150.0070.00016.82
8.0.140.0030.00616.91
8.0.130.0000.00513.28
8.0.120.0000.00816.95
8.0.110.0020.00516.78
8.0.100.0050.00316.82
8.0.90.0050.00216.87
8.0.80.0060.00916.84
8.0.70.0020.00516.80
8.0.60.0040.00417.00
8.0.50.0040.00416.74
8.0.30.0050.01717.19
8.0.20.0160.00417.40
8.0.10.0040.00417.11
8.0.00.0110.00916.70
7.4.330.0000.00515.14
7.4.320.0000.00616.55
7.4.300.0000.00616.41
7.4.290.0030.00316.59
7.4.280.0040.00416.54
7.4.270.0030.00316.46
7.4.260.0000.00716.58
7.4.250.0030.00316.55
7.4.240.0000.00716.52
7.4.230.0070.00016.60
7.4.220.0120.01016.60
7.4.210.0090.00616.71
7.4.200.0000.00716.54
7.4.160.0100.00616.27
7.4.150.0120.00617.40
7.4.140.0090.00817.86
7.4.130.0100.00816.47
7.4.120.0070.01016.50
7.4.110.0070.01016.55
7.4.100.0070.01416.62
7.4.90.0170.00716.34
7.4.80.0070.01119.39
7.4.70.0100.01216.46
7.4.60.0110.01116.74
7.4.50.0030.00616.32
7.4.40.0060.00916.61
7.4.30.0080.00816.53
7.4.00.0060.00915.15
7.3.330.0060.00013.17
7.3.320.0000.00613.17
7.3.310.0060.00316.21
7.3.300.0030.00316.41
7.3.290.0070.00716.25
7.3.280.0110.00716.30
7.3.270.0090.00917.40
7.3.260.0160.00716.55
7.3.250.0120.00616.42
7.3.240.0130.01016.47
7.3.230.0070.01016.46
7.3.210.0120.00616.27
7.3.200.0070.01019.39
7.3.190.0120.00916.29
7.3.180.0130.00316.38
7.3.170.0130.00616.62
7.3.160.0050.01016.32
7.3.120.0070.01015.02
7.2.330.0100.00616.46
7.2.320.0000.01616.44
7.2.310.0150.00616.69
7.2.300.0120.00916.29
7.2.290.0030.01316.32
7.2.60.0060.00616.65
7.2.00.0070.00719.26
7.1.200.0060.00315.77
7.1.100.0030.01017.98
7.1.70.0000.01017.25
7.1.60.0100.01319.70
7.1.50.0130.01316.77
7.1.00.0100.07022.31
7.0.200.0000.00816.64
7.0.140.0030.07322.12
7.0.60.0070.08319.96
7.0.50.0030.08317.96
7.0.40.0070.04720.12
7.0.30.0270.04020.23
7.0.20.0230.05320.11
7.0.10.0200.05320.23
7.0.00.0000.05020.28
5.6.280.0070.07021.09
5.6.210.0030.06720.63
5.6.200.0070.04018.23
5.6.190.0070.04020.55
5.6.180.0270.06320.59
5.6.170.0100.04720.67
5.6.160.0070.08320.62
5.6.150.0130.08018.19
5.6.140.0100.05018.29
5.6.130.0030.06318.19
5.6.120.0070.03721.12
5.6.110.0070.07021.11
5.6.100.0000.05021.16
5.6.90.0000.09321.02
5.6.80.0030.08020.46
5.6.70.3300.03320.43
5.5.350.0200.08020.39
5.5.340.0070.06318.03
5.5.330.0000.06020.52
5.5.320.0330.06320.29
5.5.310.0230.05720.33
5.5.300.0100.07318.01
5.5.290.0100.08317.99
5.5.280.0100.08320.73
5.5.270.0100.05020.91
5.5.260.0230.05720.89
5.5.250.0030.04020.77
5.5.240.0100.06320.16
5.4.450.0270.04319.69
5.4.440.4100.03319.52
5.4.430.0070.06319.72
5.4.420.0230.04019.48
5.4.410.0130.05019.34
5.4.400.0130.05019.30
5.4.390.0030.05719.24
5.4.380.0200.05318.82
5.4.370.0170.04018.72
5.4.360.0230.03718.79
5.4.350.0100.04112.03
5.4.340.0110.04512.02
5.4.320.0030.03912.50
5.4.310.0080.03612.50
5.4.300.0080.03612.51
5.4.290.0070.03912.50
5.4.280.0090.04412.40
5.4.270.0070.04212.38
5.4.260.0090.04012.38
5.4.250.0100.03612.38
5.4.240.0060.03712.38
5.4.230.0070.03712.37
5.4.220.0090.03512.37
5.4.210.0050.03712.37
5.4.200.0060.04212.37
5.4.190.0050.04112.37
5.4.180.0050.03812.37
5.4.170.0070.03812.37
5.4.160.0080.03412.37
5.4.150.0050.04012.37
5.4.140.0060.04012.05
5.4.130.0070.03612.04
5.4.120.0070.03812.00
5.4.110.0090.03912.00
5.4.100.0070.03712.00
5.4.90.0060.04012.00
5.4.80.0080.03811.99
5.4.70.0080.03411.99
5.4.60.0070.03711.99
5.4.50.0060.03711.99
5.4.40.0060.03811.98
5.4.30.0060.03611.97
5.4.20.0060.03811.97
5.4.10.0060.03511.97
5.4.00.0080.03911.46
5.3.290.0080.03712.80
5.3.280.0060.03912.71
5.3.270.0060.04012.72
5.3.260.0050.04112.72
5.3.250.0080.04012.72
5.3.240.0070.03712.72
5.3.230.0060.03912.71
5.3.220.0050.04712.68
5.3.210.0070.03912.68
5.3.200.0080.03712.68
5.3.190.0060.04012.68
5.3.180.0070.03512.67
5.3.170.0070.03712.67
5.3.160.0070.03612.67
5.3.150.0050.03912.67
5.3.140.0060.04012.66
5.3.130.0110.03612.66
5.3.120.0070.03912.66
5.3.110.0050.04312.66
5.3.100.0090.03412.12
5.3.90.0050.03912.09
5.3.80.0070.03712.09
5.3.70.0070.03812.09
5.3.60.0090.04012.07
5.3.50.0050.04012.01
5.3.40.0050.03812.01
5.3.30.0060.03511.98

preferences:
44.4 ms | 400 KiB | 5 Q