3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('SALT', 'whateveryouwant'); 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 = encrypt("your message"); 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.0150.00318.52
8.3.60.0080.00816.75
8.3.50.0080.01122.08
8.3.40.0070.01018.92
8.3.30.0120.00318.65
8.3.20.0050.00320.16
8.3.10.0080.00020.96
8.3.00.0030.00520.82
8.2.180.0100.00718.54
8.2.170.0060.00822.96
8.2.160.0070.00718.97
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0060.00322.26
8.2.120.0050.00226.35
8.2.110.0060.00322.27
8.2.100.0090.00317.66
8.2.90.0040.00417.63
8.2.80.0000.00817.97
8.2.70.0000.00917.80
8.2.60.0050.00317.80
8.2.50.0030.00618.10
8.2.40.0050.00320.34
8.2.30.0050.00219.07
8.2.20.0040.00418.06
8.2.10.0000.00718.05
8.2.00.0070.00017.79
8.1.280.0070.00725.92
8.1.270.0070.00023.99
8.1.260.0030.00528.09
8.1.250.0000.00828.09
8.1.240.0060.00323.84
8.1.230.0040.00819.02
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0090.00317.10
8.1.180.0000.00718.10
8.1.170.0000.00720.72
8.1.160.0000.00822.19
8.1.150.0040.00418.76
8.1.140.0040.00419.49
8.1.130.0000.00717.58
8.1.120.0030.00317.35
8.1.110.0000.00717.29
8.1.100.0000.00717.23
8.1.90.0030.00417.35
8.1.80.0000.00717.31
8.1.70.0030.00317.34
8.1.60.0050.00317.43
8.1.50.0090.00017.37
8.1.40.0030.00617.41
8.1.30.0040.00417.51
8.1.20.0040.00417.43
8.1.10.0000.00917.55
8.1.00.0020.00517.41
8.0.300.0000.00718.77
8.0.290.0080.00016.75
8.0.280.0000.00818.43
8.0.270.0030.00317.20
8.0.260.0000.00717.41
8.0.250.0000.00816.99
8.0.240.0000.00616.99
8.0.230.0030.00716.94
8.0.220.0030.00316.89
8.0.210.0070.00016.91
8.0.200.0060.00016.82
8.0.190.0050.00317.00
8.0.180.0040.00416.93
8.0.170.0050.00216.85
8.0.160.0000.00716.86
8.0.150.0030.00316.95
8.0.140.0040.00416.88
8.0.130.0030.00313.28
8.0.120.0030.00616.88
8.0.110.0000.00816.77
8.0.100.0000.00716.96
8.0.90.0000.00716.89
8.0.80.0060.00916.81
8.0.70.0060.00316.85
8.0.60.0080.00016.79
8.0.50.0000.00716.79
8.0.30.0080.01216.91
8.0.20.0120.01117.40
8.0.10.0040.00417.07
8.0.00.0140.01016.71
7.4.330.0000.00615.08
7.4.320.0030.00316.34
7.4.300.0020.00516.47
7.4.290.0030.00316.49
7.4.280.0060.00316.44
7.4.270.0020.00516.45
7.4.260.0030.00316.29
7.4.250.0030.00316.52
7.4.240.0050.00316.54
7.4.230.0070.00016.52
7.4.220.0100.00716.46
7.4.210.0070.00716.65
7.4.200.0030.00316.26
7.4.160.0140.00216.57
7.4.150.0130.00317.40
7.4.140.0080.00917.86
7.4.130.0070.01016.57
7.4.120.0120.00516.46
7.4.110.0120.00916.58
7.4.100.0110.00516.25
7.4.90.0100.00716.39
7.4.80.0080.01219.39
7.4.70.0050.01116.43
7.4.60.0090.00616.38
7.4.50.0000.01316.43
7.4.40.0060.01716.46
7.4.30.0110.00616.48
7.4.00.0060.00614.83
7.3.330.0020.00213.26
7.3.320.0030.00313.32
7.3.310.0000.00716.17
7.3.300.0060.00016.17
7.3.290.0080.00716.30
7.3.280.0080.01116.32
7.3.270.0070.01117.40
7.3.260.0160.00616.36
7.3.250.0120.00916.42
7.3.240.0130.00516.39
7.3.230.0090.01216.39
7.3.210.0100.01316.29
7.3.200.0080.01116.34
7.3.190.0140.01016.27
7.3.180.0040.01216.49
7.3.170.0150.00316.25
7.3.160.0160.00816.46
7.3.120.0090.00614.62
7.3.110.0130.00314.69
7.3.100.0070.00714.75
7.3.90.0070.00314.97
7.3.80.0050.00514.46
7.3.70.0060.00614.85
7.3.60.0060.00614.91
7.3.50.0120.00314.68
7.3.40.0030.00814.62
7.3.30.0080.00614.82
7.3.20.0120.00316.77
7.3.10.0090.00516.49
7.3.00.0090.00516.56
7.2.330.0140.00316.50
7.2.320.0130.00316.52
7.2.310.0110.01116.56
7.2.300.0100.00716.21
7.2.290.0040.01816.42
7.2.240.0040.01414.97
7.2.230.0090.00614.57
7.2.220.0070.00715.00
7.2.210.0140.00314.79
7.2.200.0000.01414.84
7.2.190.0070.00714.77
7.2.180.0030.00914.75
7.2.170.0060.00914.73
7.2.160.0040.01115.07
7.2.150.0060.00616.74
7.2.140.0040.01116.44
7.2.130.0040.01316.73
7.2.120.0060.00616.84
7.2.110.0070.01016.85
7.2.100.0070.00716.54
7.2.90.0030.00816.79
7.2.80.0090.00516.71
7.2.70.0030.00816.76
7.2.60.0080.00516.58
7.2.50.0060.01016.67
7.2.40.0040.00716.88
7.2.30.0080.00516.88
7.2.20.0060.01016.68
7.2.10.0050.00816.75
7.2.00.0040.01118.08
7.1.330.0120.00415.37
7.1.320.0030.01415.66
7.1.310.0060.00615.86
7.1.300.0030.01015.68
7.1.290.0040.01415.73
7.1.280.0060.01215.70
7.1.270.0060.00915.50
7.1.260.0030.00915.65
7.1.250.0040.01115.49
7.1.200.0070.00715.64
7.1.120.0060.00618.70
7.1.110.0100.00717.81
7.1.100.0080.01217.05
7.1.90.0140.00718.23
7.1.80.0060.00618.07
7.1.70.0050.00916.99
7.1.60.0180.00526.07
7.1.50.0140.01525.67
7.1.40.0250.00634.28
7.1.30.0250.01434.40
7.1.20.0310.02034.47
7.1.10.0130.00616.39
7.1.00.0050.04219.39
7.0.260.0070.01118.13
7.0.250.0130.00417.68
7.0.240.0140.01116.02
7.0.230.0030.01017.80
7.0.220.0030.00917.55
7.0.210.0090.00916.70
7.0.200.0050.01015.78
7.0.190.0090.00616.76
7.0.180.0030.01316.10
7.0.170.0140.01114.26
7.0.160.0040.01416.07
7.0.150.0030.01616.05
7.0.140.0060.01116.28
7.0.130.0050.00816.19
7.0.120.0390.00916.35
7.0.110.0120.02918.34
7.0.100.0110.03018.20
7.0.90.0030.03918.19
7.0.80.0070.03318.27
7.0.70.0150.03218.28
7.0.60.0270.02218.12
7.0.50.0180.03018.28
7.0.40.0170.03218.37
7.0.30.0180.02918.29
7.0.20.0170.03318.36
7.0.10.0200.03518.35
7.0.00.0130.04518.37
5.6.300.0230.06220.59
5.6.290.0230.04620.85
5.6.280.0070.08020.85
5.6.270.0160.05520.80
5.6.260.0100.05920.87
5.6.250.0100.06420.91
5.6.240.0120.06520.85
5.6.230.0110.05920.89
5.6.220.0100.05620.92
5.6.210.0170.05820.73
5.6.200.0120.06420.91
5.6.190.0080.06420.89
5.6.180.0130.05420.92
5.6.170.0100.05620.94
5.6.160.0120.05920.99
5.6.150.0120.06720.98
5.6.140.0080.06120.75
5.6.130.0130.05420.90
5.6.120.0220.05020.91
5.6.110.0130.06521.01
5.6.100.0120.06520.88
5.6.90.0100.05420.77
5.6.80.0080.05420.37
5.6.70.0100.05720.20
5.6.60.0130.05620.20
5.6.50.0110.05820.19
5.6.40.0050.06620.22
5.6.30.0170.05620.35
5.6.20.0080.06120.24
5.6.10.0120.06120.30
5.6.00.0120.06220.26

preferences:
83.44 ms | 401 KiB | 5 Q