3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('SALT', '$2015'); 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, SALT, base64_decode($text), MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND))); } $encryptedmessage = "tvVe4c3NsIorUOl3plEBBN4bcTm95a09FfZU1Mgw5mA="; 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.0090.00616.75
8.3.50.0080.01221.11
8.3.40.0090.00618.82
8.3.30.0150.00018.88
8.3.20.0080.00020.20
8.3.10.0000.00723.53
8.3.00.0080.00019.55
8.2.180.0040.01218.41
8.2.170.0040.01122.96
8.2.160.0100.00320.29
8.2.150.0080.00024.18
8.2.140.0150.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00020.58
8.2.110.0100.00720.52
8.2.100.0090.00317.79
8.2.90.0080.00018.09
8.2.80.0040.00417.97
8.2.70.0070.00417.50
8.2.60.0040.00417.93
8.2.50.0040.00718.07
8.2.40.0060.00319.34
8.2.30.0040.00417.95
8.2.20.0060.00317.61
8.2.10.0000.00818.01
8.2.00.0040.00418.07
8.1.280.0100.00325.92
8.1.270.0080.00020.12
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00622.06
8.1.230.0040.00720.87
8.1.220.0050.00317.77
8.1.210.0000.00818.77
8.1.200.0000.01017.35
8.1.190.0030.00517.23
8.1.180.0060.00318.10
8.1.170.0000.00918.58
8.1.160.0000.00721.96
8.1.150.0040.00418.76
8.1.140.0000.00917.40
8.1.130.0000.00717.53
8.1.120.0000.00717.48
8.1.110.0040.00417.39
8.1.100.0000.00717.48
8.1.90.0030.00317.39
8.1.80.0020.00517.36
8.1.70.0030.00317.33
8.1.60.0030.00617.63
8.1.50.0050.00317.59
8.1.40.0040.00417.40
8.1.30.0000.00817.61
8.1.20.0090.00017.57
8.1.10.0040.00417.45
8.1.00.0070.00017.50
8.0.300.0040.00420.04
8.0.290.0070.00016.75
8.0.280.0040.00418.31
8.0.270.0080.00017.19
8.0.260.0030.00317.21
8.0.250.0000.00716.95
8.0.240.0040.00417.01
8.0.230.0030.00316.89
8.0.220.0030.00316.87
8.0.210.0000.00716.91
8.0.200.0030.00316.85
8.0.190.0070.00016.94
8.0.180.0040.00416.94
8.0.170.0040.00416.89
8.0.160.0000.00816.87
8.0.150.0040.00416.91
8.0.140.0070.00016.74
8.0.130.0040.00313.30
8.0.120.0000.00816.84
8.0.110.0020.00516.87
8.0.100.0070.00016.93
8.0.90.0040.00416.77
8.0.80.0080.00816.79
8.0.70.0040.00416.91
8.0.60.0050.00216.80
8.0.50.0040.00416.95
8.0.30.0090.01116.99
8.0.20.0060.01217.40
8.0.10.0040.00416.97
8.0.00.0080.00916.74
7.4.330.0050.00015.08
7.4.320.0000.00616.45
7.4.300.0000.00716.46
7.4.290.0000.00716.50
7.4.280.0050.00316.60
7.4.270.0030.00316.52
7.4.260.0030.00316.61
7.4.250.0090.00016.58
7.4.240.0050.00216.60
7.4.230.0030.00316.33
7.4.220.0090.00916.54
7.4.210.0110.00416.59
7.4.200.0070.00016.50
7.4.160.0100.00616.71
7.4.150.0070.01017.40
7.4.140.0100.01117.86
7.4.130.0040.01516.45
7.4.120.0090.01116.55
7.4.110.0110.00716.69
7.4.100.0150.00616.62
7.4.90.0100.00716.42
7.4.80.0160.01319.39
7.4.70.0080.01016.38
7.4.60.0160.00316.51
7.4.50.0020.00216.44
7.4.40.0030.01516.63
7.4.30.0130.00916.59
7.4.00.0070.01115.00
7.3.330.0000.00513.31
7.3.320.0000.00613.27
7.3.310.0000.00716.13
7.3.300.0030.00316.22
7.3.290.0100.00816.27
7.3.280.0060.01316.33
7.3.270.0040.01717.40
7.3.260.0070.01016.47
7.3.250.0080.01016.32
7.3.240.0120.00616.38
7.3.230.0060.01216.39
7.3.210.0080.00816.19
7.3.200.0060.01516.48
7.3.190.0070.01016.41
7.3.180.0100.00616.47
7.3.170.0120.00416.38
7.3.160.0110.00516.32
7.2.330.0070.01516.45
7.2.320.0080.00816.50
7.2.310.0130.01016.65
7.2.300.0060.01216.46
7.2.290.0030.01316.46
7.2.60.0000.01216.79
7.2.00.0060.00919.25
7.1.200.0060.00315.70
7.1.100.0000.01318.00
7.1.70.0040.00416.87
7.1.60.0070.01319.13
7.1.50.0100.01016.98
7.1.00.0070.07322.57
7.0.200.0130.00016.46
7.0.60.0070.03719.96
7.0.50.0000.06717.96
7.0.40.0070.04020.29
7.0.30.0170.04320.38
7.0.20.0170.07320.12
7.0.10.0070.04020.14
7.0.00.0200.07020.23
5.6.280.0070.05721.07
5.6.210.0070.05020.63
5.6.200.0000.04718.23
5.6.190.0030.06020.46
5.6.180.0300.07020.48
5.6.170.0330.06720.65
5.6.160.0070.05020.43
5.6.150.0100.04718.30
5.6.140.0030.05018.19
5.6.130.0100.07718.18
5.6.120.0070.08321.19
5.6.110.0130.05721.07
5.6.100.0030.06721.17
5.6.90.0000.09021.05
5.6.80.0100.07720.46
5.6.70.3100.04320.43
5.5.350.0100.08320.53
5.5.340.0000.09017.99
5.5.330.0070.04020.44
5.5.320.0400.05020.35
5.5.310.0370.05720.52
5.5.300.0000.04318.11
5.5.290.0030.05018.00
5.5.280.0100.08320.93
5.5.270.0130.04020.92
5.5.260.0100.07720.91
5.5.250.0170.07720.86
5.5.240.0000.08320.27
5.4.450.0830.05319.34
5.4.440.0770.06019.43
5.4.430.0770.05319.44
5.4.420.0830.05019.43
5.4.410.0570.06319.60
5.4.400.0870.04319.10
5.4.390.0600.06019.28
5.4.380.0570.05719.11
5.4.370.0670.05019.31
5.4.360.0600.05719.11
5.4.350.0770.05319.05
5.4.340.0730.05719.28
5.4.320.0730.05719.28
5.4.310.0630.05019.32
5.4.300.0700.05019.08
5.4.290.0770.05719.05
5.4.280.0700.05319.25
5.4.270.0600.06019.27
5.4.260.0730.04019.27
5.4.250.0630.05019.39
5.4.240.0670.05719.07
5.4.230.0600.05719.27
5.4.220.0630.05019.04
5.4.210.0770.05319.13
5.4.200.0630.05319.09
5.4.190.0630.05318.99
5.4.180.0730.04719.08
5.4.170.0600.05319.31
5.4.160.0600.05319.29
5.4.150.0570.06019.29
5.4.140.0830.04016.38
5.4.130.0600.05016.63
5.4.120.0600.06316.45
5.4.110.0670.05016.61
5.4.100.0670.04716.70
5.4.90.0630.04716.66
5.4.80.0770.04716.62
5.4.70.0230.05016.67
5.4.60.0430.06016.47
5.4.50.0000.04016.27
5.4.40.0100.06316.38
5.4.30.0000.06716.59
5.4.20.0070.03316.36

preferences:
34.04 ms | 401 KiB | 5 Q