3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('SALT', str_pad("$2015", 16)); 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 = 'wCrMVSbWwn3MO2YbKYm6bWhDcr1Mn8l+wX5zC94ykvM='; 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.70.0130.00618.39
8.3.60.0090.01216.50
8.3.50.0150.00521.20
8.3.40.0100.01018.82
8.3.30.0140.00018.87
8.3.20.0000.00820.13
8.3.10.0000.00823.44
8.3.00.0000.00822.50
8.2.190.0130.00616.58
8.2.180.0040.01516.75
8.2.170.0120.00322.96
8.2.160.0070.00722.16
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00617.38
8.2.110.0090.00019.41
8.2.100.0080.00817.78
8.2.90.0050.00319.22
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0000.00818.04
8.2.50.0060.00318.07
8.2.40.0000.00821.13
8.2.30.0030.00519.89
8.2.20.0000.00817.68
8.2.10.0040.00418.12
8.2.00.0050.00317.98
8.1.280.0160.00625.92
8.1.270.0040.00420.24
8.1.260.0060.00326.35
8.1.250.0050.00228.09
8.1.240.0030.00524.01
8.1.230.0040.00819.00
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0030.00617.35
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0090.00018.46
8.1.160.0060.00321.94
8.1.150.0020.00518.83
8.1.140.0070.00017.33
8.1.130.0030.00317.64
8.1.120.0050.00317.37
8.1.110.0070.00417.32
8.1.100.0000.00717.29
8.1.90.0070.00317.34
8.1.80.0050.00317.27
8.1.70.0070.00017.46
8.1.60.0000.00717.57
8.1.50.0080.00017.42
8.1.40.0070.00017.51
8.1.30.0030.00617.55
8.1.20.0040.00417.63
8.1.10.0050.00317.47
8.1.00.0000.00717.40
8.0.300.0100.00018.77
8.0.290.0050.00316.63
8.0.280.0000.00718.29
8.0.270.0030.00317.12
8.0.260.0000.00617.19
8.0.250.0000.00716.88
8.0.240.0070.00016.95
8.0.230.0040.00416.84
8.0.220.0030.00316.90
8.0.210.0040.00416.87
8.0.200.0030.00516.88
8.0.190.0000.00916.95
8.0.180.0050.00316.92
8.0.170.0040.00416.95
8.0.160.0050.00316.95
8.0.150.0000.00716.72
8.0.140.0040.00816.77
8.0.130.0040.00413.32
8.0.120.0040.00416.84
8.0.110.0000.00716.89
8.0.100.0040.00416.77
8.0.90.0000.00716.90
8.0.80.0030.01216.83
8.0.70.0030.00516.96
8.0.60.0070.00016.94
8.0.50.0030.00316.76
8.0.30.0120.00617.18
8.0.20.0160.01517.40
8.0.10.0030.00517.07
8.0.00.0100.00916.56
7.4.330.0000.00515.14
7.4.320.0030.00316.50
7.4.300.0040.00416.49
7.4.290.0030.00316.50
7.4.280.0040.00416.59
7.4.270.0030.00316.57
7.4.260.0000.00716.49
7.4.250.0000.00816.57
7.4.240.0020.00516.62
7.4.230.0000.00716.50
7.4.220.0120.00916.70
7.4.210.0100.01016.45
7.4.200.0000.00716.43
7.4.160.0030.01216.55
7.4.150.0220.02017.40
7.4.140.0140.00917.86
7.4.130.0070.01016.53
7.4.120.0110.00616.55
7.4.110.0070.01016.38
7.4.100.0100.01016.58
7.4.90.0090.01116.51
7.4.80.0180.00419.39
7.4.70.0040.01116.44
7.4.60.0030.01216.46
7.4.50.0000.00416.54
7.4.40.0100.00616.50
7.4.30.0120.00616.47
7.4.00.0070.01014.84
7.3.330.0000.00613.13
7.3.320.0000.00513.15
7.3.310.0000.00716.17
7.3.300.0040.00416.32
7.3.290.0070.00916.31
7.3.280.0080.01116.26
7.3.270.0100.00717.40
7.3.260.0040.01516.61
7.3.250.0070.01116.33
7.3.240.0080.00916.45
7.3.230.0070.01016.39
7.3.210.0130.00816.48
7.3.200.0070.01416.23
7.3.190.0140.00716.34
7.3.180.0130.00616.28
7.3.170.0150.00616.33
7.3.160.0140.00716.29
7.3.120.0120.00414.75
7.3.110.0100.01014.71
7.3.100.0090.00615.02
7.3.90.0030.00714.95
7.3.80.0060.00914.59
7.3.70.0060.01214.82
7.3.60.0000.01714.87
7.3.50.0060.00614.52
7.3.40.0040.01214.83
7.3.30.0040.01214.75
7.3.20.0060.00316.66
7.3.10.0070.00516.47
7.3.00.0070.00916.38
7.2.330.0100.01316.47
7.2.320.0110.00816.46
7.2.310.0130.00616.38
7.2.300.0070.01016.54
7.2.290.0030.01316.59
7.2.250.0070.01414.89
7.2.240.0120.00614.88
7.2.230.0030.00614.61
7.2.220.0030.00614.64
7.2.210.0060.01014.98
7.2.200.0000.01114.62
7.2.190.0110.00314.68
7.2.180.0070.00314.66
7.2.170.0000.01514.97
7.2.130.0140.00716.47
7.2.120.0130.00316.36
7.2.110.0080.00816.19
7.2.100.0150.00416.40
7.2.90.0090.00016.12
7.2.80.0120.00416.57
7.2.70.0110.00816.32
7.2.60.0070.00916.62
7.2.50.0050.00616.61
7.2.40.0120.00916.08
7.2.30.0140.00316.42
7.2.20.0090.00915.85
7.2.10.0100.00316.34
7.2.00.0120.00918.02
7.1.330.0070.01015.41
7.1.320.0000.01315.70
7.1.310.0030.01015.61
7.1.300.0070.00715.74
7.1.290.0000.00915.87
7.1.280.0090.00615.58
7.1.270.0050.00515.70
7.1.260.0040.01115.47
7.1.250.0070.01015.51
7.1.200.0080.00315.72
7.1.100.0040.01817.87
7.1.70.0000.00717.21
7.1.60.0120.01219.18
7.1.50.0070.01417.04
7.1.00.0030.07722.48
7.0.200.0060.00616.62
7.0.60.0030.07719.94
7.0.50.0070.06717.97
7.0.40.0170.05320.23
7.0.30.0370.06720.28
7.0.20.0170.05720.29
7.0.10.0100.08320.33
7.0.00.0130.05320.33
5.6.210.0030.07020.47
5.6.200.0130.04718.34
5.6.190.0030.04320.66
5.6.180.0370.03720.50
5.6.170.0330.07720.54
5.6.160.0070.04320.62
5.6.150.0070.05018.36
5.6.140.0100.03318.21
5.6.130.0070.04018.28
5.6.120.0130.07721.06
5.6.110.0070.04321.19
5.6.100.0130.03321.12
5.6.90.0130.06721.21
5.6.80.0100.06020.56
5.5.350.0000.03720.31
5.5.340.0030.04718.09
5.5.330.0130.07020.16
5.5.320.0070.07720.24
5.5.310.0230.07320.34
5.5.300.0070.08018.04
5.5.290.0070.05017.97
5.5.280.0130.07720.80
5.5.270.0170.06720.75
5.5.260.0030.07020.85
5.5.250.0030.08320.76
5.5.240.0070.07320.13
5.4.450.0800.05319.53
5.4.440.0770.06019.48
5.4.430.0800.04719.39
5.4.420.0870.05019.42
5.4.410.0730.05319.47
5.4.400.0730.05318.91
5.4.390.0630.06319.43
5.4.380.0930.06019.36
5.4.370.0870.05719.27
5.4.360.0870.05319.33
5.4.350.0900.04718.88
5.4.340.0770.05319.30
5.4.320.1070.06719.16
5.4.310.0930.06719.05
5.4.300.0470.07719.16
5.4.290.0570.05318.90
5.4.280.0800.04018.87
5.4.270.0770.04719.43
5.4.260.0730.05319.20
5.4.250.0730.05719.04
5.4.240.0930.05019.33
5.4.230.0670.05719.33
5.4.220.0900.05719.20
5.4.210.0770.05319.21
5.4.200.0930.05016.86
5.4.190.1000.06019.22
5.4.180.0970.06319.04
5.4.170.0870.05319.22
5.4.160.0970.04019.06
5.4.150.0670.06019.30
5.4.140.0830.04716.52
5.4.130.0700.05016.61
5.4.120.0700.04716.67
5.4.110.0870.05716.66
5.4.100.0700.05316.83
5.4.90.0670.05316.47
5.4.80.0700.05016.81
5.4.70.0700.06016.44
5.4.60.0230.07016.52
5.4.50.0070.07016.52
5.4.40.0230.07316.37
5.4.30.0230.07016.63
5.4.20.0270.06316.42
5.4.10.0330.03716.51

preferences:
68.29 ms | 401 KiB | 5 Q