3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = 'Internet!23'; $string = 'uxLiOKcdQtXG4sYwNRsHUztl7vxck30ocGEjHoYv3Co7M6L5yf4GBiwLEtPnhPJAROKtAqJU0mHvwQErociBQFvppIWuSXlX1eUlelWYQXrFcisrBfmxILxBVcRCgomsKY1+Olf43w41kGh40N5etw='; // note the spaces $iv = mcrypt_create_iv( mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC), MCRYPT_DEV_URANDOM ); $data = base64_decode($string); $iv = substr($data, 0, mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC)); $decrypted = rtrim( mcrypt_decrypt( MCRYPT_RIJNDAEL_128, hash('sha256', $key, true), substr($data, mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC)), MCRYPT_MODE_CBC, $iv ), "\0" ); echo "\n"; echo 'Decrypted:' . "\n"; var_dump($decrypted);

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.0070.00718.55
8.3.50.0130.00316.30
8.3.40.0070.01118.84
8.3.30.0070.00718.84
8.3.20.0080.00020.87
8.3.10.0040.00423.65
8.3.00.0000.00919.46
8.2.180.0090.00616.50
8.2.170.0070.00722.96
8.2.160.0030.01320.57
8.2.150.0060.00325.66
8.2.140.0050.00324.66
8.2.130.0040.00420.26
8.2.120.0050.00226.35
8.2.110.0060.00320.47
8.2.100.0110.00017.91
8.2.90.0080.00019.13
8.2.80.0040.00418.04
8.2.70.0040.00417.50
8.2.60.0000.00817.91
8.2.50.0060.00318.10
8.2.40.0040.00422.17
8.2.30.0040.00421.01
8.2.20.0000.00717.90
8.2.10.0050.00317.99
8.2.00.0030.00618.08
8.1.280.0120.00325.92
8.1.270.0080.00023.88
8.1.260.0060.00326.35
8.1.250.0000.00728.09
8.1.240.0040.00422.05
8.1.230.0040.00817.42
8.1.220.0080.00017.79
8.1.210.0090.00018.77
8.1.200.0110.00017.35
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0040.00418.52
8.1.160.0050.00219.08
8.1.150.0030.00520.60
8.1.140.0030.00719.59
8.1.130.0000.00718.75
8.1.120.0030.00517.43
8.1.110.0030.00517.39
8.1.100.0000.00717.47
8.1.90.0000.00717.35
8.1.80.0070.00317.45
8.1.70.0080.00317.46
8.1.60.0030.00617.57
8.1.50.0000.00717.41
8.1.40.0030.00717.59
8.1.30.0040.00417.68
8.1.20.0040.00417.70
8.1.10.0000.00917.44
8.1.00.0040.00417.51
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0030.00318.42
8.0.270.0030.00317.16
8.0.260.0030.00316.91
8.0.250.0030.00316.86
8.0.240.0040.00416.89
8.0.230.0040.00416.91
8.0.220.0030.00316.82
8.0.210.0050.00216.95
8.0.200.0030.00316.96
8.0.190.0000.00816.87
8.0.180.0040.00416.91
8.0.170.0000.00716.99
8.0.160.0000.00717.00
8.0.150.0030.00516.77
8.0.140.0030.00516.91
8.0.130.0000.00713.30
8.0.120.0030.00516.78
8.0.110.0030.00316.95
8.0.100.0040.00416.75
8.0.90.0030.00316.80
8.0.80.0100.00616.98
8.0.70.0060.00316.80
8.0.60.0000.00716.95
8.0.50.0000.00717.02
8.0.30.0100.00817.00
8.0.20.0110.00817.40
8.0.10.0040.00417.05
8.0.00.0070.01117.04
7.4.330.0050.00015.55
7.4.320.0000.00616.57
7.4.300.0040.00416.53
7.4.290.0070.00316.63
7.4.280.0040.00416.54
7.4.270.0030.00316.49
7.4.260.0050.00516.44
7.4.250.0000.00716.57
7.4.240.0000.00716.51
7.4.230.0000.00716.66
7.4.220.0100.01316.48
7.4.210.0130.00316.54
7.4.200.0030.00516.48
7.4.160.0100.00916.50
7.4.150.0180.00417.40
7.4.140.0150.00617.86
7.4.130.0050.01116.57
7.4.120.0120.00816.50
7.4.110.0070.01116.61
7.4.100.0100.00716.50
7.4.90.0100.00616.50
7.4.80.0090.00719.39
7.4.70.0140.00616.80
7.4.60.0000.02116.50
7.4.50.0030.01416.54
7.4.40.0030.01316.76
7.4.30.0060.01316.38
7.4.00.0120.00414.91
7.3.330.0020.00213.06
7.3.320.0030.00313.11
7.3.310.0040.00416.35
7.3.300.0070.00016.27
7.3.290.0090.00516.21
7.3.280.0080.00916.29
7.3.270.0050.01817.40
7.3.260.0100.00816.55
7.3.250.0090.00816.20
7.3.240.0070.00916.35
7.3.230.0090.00916.34
7.3.210.0060.01216.42
7.3.200.0080.00816.43
7.3.190.0070.01016.36
7.3.180.0130.00316.32
7.3.170.0100.00716.28
7.3.160.0060.01416.39
7.3.10.0150.00916.11
7.3.00.0110.00616.15
7.2.330.0090.00916.36
7.2.320.0070.01016.17
7.2.310.0090.00916.34
7.2.300.0030.01316.20
7.2.290.0130.00316.39
7.2.130.0180.00016.80
7.2.120.0140.00716.76
7.2.110.0100.00716.46
7.2.100.0090.01816.04
7.2.90.0160.00616.33
7.2.80.0170.00416.16
7.2.70.0180.00415.98
7.2.60.0050.00916.66
7.2.50.0180.00916.37
7.2.40.0180.00916.44
7.2.30.0180.00316.52
7.2.20.0130.00616.30
7.2.10.0160.00316.27
7.2.00.0070.00817.82
7.1.250.0090.00914.88
7.1.200.0030.00915.71
7.1.100.0000.01118.04
7.1.70.0070.00417.04
7.1.60.0200.01733.00
7.1.50.0930.02332.80
7.1.40.2270.01732.53
7.1.30.2030.03032.56
7.1.20.1800.01332.66
7.1.10.0030.01314.82
7.1.00.0070.02014.55
7.0.200.1030.00714.75
7.0.190.0000.01314.78
7.0.180.0030.01314.30
7.0.170.1530.01014.27
7.0.160.2070.01014.13
7.0.150.0100.00714.43
7.0.140.0030.01314.35
7.0.130.1800.01314.64
7.0.120.2030.00714.67
7.0.110.1600.01314.34
7.0.100.1800.01014.55
7.0.90.0070.01014.26
7.0.80.0100.01314.30
7.0.70.1730.01314.38
7.0.60.1270.01014.20
7.0.50.0100.00714.31
7.0.40.1900.00714.30
7.0.30.0170.00314.55
7.0.20.1830.01314.42
7.0.10.1670.01014.24
7.0.00.1400.00714.20

preferences:
60.9 ms | 400 KiB | 5 Q