3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = 'internet123'; $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.0110.00418.56
8.3.50.0100.00716.21
8.3.40.0070.01018.80
8.3.30.0090.00518.48
8.3.20.0000.00820.91
8.3.10.0040.00423.70
8.3.00.0080.00019.60
8.2.180.0110.00416.50
8.2.170.0080.00622.96
8.2.160.0110.00420.39
8.2.150.0020.00524.18
8.2.140.0080.00024.66
8.2.130.0050.00220.41
8.2.120.0040.00426.35
8.2.110.0060.00322.02
8.2.100.0060.00617.77
8.2.90.0030.00519.02
8.2.80.0050.00318.03
8.2.70.0040.00417.50
8.2.60.0040.00417.92
8.2.50.0000.00818.10
8.2.40.0000.00922.37
8.2.30.0030.00620.91
8.2.20.0040.00418.10
8.2.10.0000.00818.00
8.2.00.0050.00218.01
8.1.280.0070.01125.92
8.1.270.0050.00322.01
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0060.00319.05
8.1.230.0070.00417.42
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.25
8.1.190.0000.00817.23
8.1.180.0000.00718.10
8.1.170.0060.00318.72
8.1.160.0070.00018.91
8.1.150.0040.00420.57
8.1.140.0000.00919.45
8.1.130.0000.00718.84
8.1.120.0000.00817.36
8.1.110.0000.00817.43
8.1.100.0070.00017.39
8.1.90.0030.00517.43
8.1.80.0050.00517.32
8.1.70.0050.00317.45
8.1.60.0040.00417.54
8.1.50.0070.00017.55
8.1.40.0040.00717.56
8.1.30.0040.00417.59
8.1.20.0000.00717.63
8.1.10.0060.00317.57
8.1.00.0030.00617.54
8.0.300.0050.00218.77
8.0.290.0040.00416.75
8.0.280.0000.00818.46
8.0.270.0070.00017.22
8.0.260.0000.00716.85
8.0.250.0030.00516.88
8.0.240.0050.00316.87
8.0.230.0050.00316.98
8.0.220.0060.00016.83
8.0.210.0040.00416.92
8.0.200.0040.00417.04
8.0.190.0000.00816.96
8.0.180.0040.00416.98
8.0.170.0050.00216.94
8.0.160.0070.00016.99
8.0.150.0030.00316.88
8.0.140.0070.00016.78
8.0.130.0040.00313.33
8.0.120.0000.00816.85
8.0.110.0070.00016.73
8.0.100.0060.00316.97
8.0.90.0040.00416.95
8.0.80.0070.01416.89
8.0.70.0040.00416.98
8.0.60.0050.00316.98
8.0.50.0000.00816.91
8.0.30.0110.00817.22
8.0.20.0110.00917.40
8.0.10.0040.00417.10
8.0.00.0130.00616.91
7.4.330.0000.00515.55
7.4.320.0030.00316.55
7.4.300.0050.00316.45
7.4.290.0100.00016.43
7.4.280.0000.00816.63
7.4.270.0000.00716.55
7.4.260.0050.00516.66
7.4.250.0040.00416.52
7.4.240.0080.00016.69
7.4.230.0000.00716.43
7.4.220.0050.02016.49
7.4.210.0130.00316.56
7.4.200.0000.00716.54
7.4.160.0120.00316.49
7.4.150.0090.00817.40
7.4.140.0090.01017.86
7.4.130.0030.01416.48
7.4.120.0110.01016.61
7.4.110.0100.00716.43
7.4.100.0100.00616.55
7.4.90.0100.00716.58
7.4.80.0070.01019.39
7.4.70.0000.02016.62
7.4.60.0090.00916.34
7.4.50.0070.01016.78
7.4.40.0000.01616.38
7.4.30.0090.00916.79
7.4.00.0070.00715.19
7.3.330.0030.00313.05
7.3.320.0000.00613.09
7.3.310.0080.00016.22
7.3.300.0000.00716.33
7.3.290.0100.00516.27
7.3.280.0080.00716.29
7.3.270.0060.01317.40
7.3.260.0070.01016.40
7.3.250.0110.00816.42
7.3.240.0080.00816.51
7.3.230.0090.01216.48
7.3.210.0110.00716.53
7.3.200.0100.01016.63
7.3.190.0040.01216.32
7.3.180.0060.00916.50
7.3.170.0080.00816.48
7.3.160.0100.01016.31
7.2.330.0140.00416.50
7.2.320.0160.00616.62
7.2.310.0100.00716.29
7.2.300.0080.00816.37
7.2.290.0070.01016.63
7.2.60.0070.01016.63
7.2.00.0000.01219.04
7.1.200.0110.00315.42
7.1.100.0080.00418.03
7.1.70.0030.00516.98
7.1.60.0870.02033.14
7.1.50.0430.01032.82
7.1.40.0500.02332.55
7.1.30.0300.01332.70
7.1.20.2100.02032.47
7.1.10.1330.01014.61
7.1.00.0030.01714.48
7.0.200.0130.01015.05
7.0.190.1530.01315.00
7.0.180.1370.01014.41
7.0.170.1470.00714.26
7.0.160.1430.00714.27
7.0.150.1300.01014.59
7.0.140.1630.01314.27
7.0.130.1570.01714.48
7.0.120.1500.01314.63
7.0.110.0100.01014.39
7.0.100.0130.01314.39
7.0.90.1570.01014.39
7.0.80.1570.01314.18
7.0.70.0070.01014.24
7.0.60.1400.01014.20
7.0.50.1330.01014.32
7.0.40.1670.01714.47
7.0.30.1200.01014.55
7.0.20.1630.01314.53
7.0.10.1600.01014.38
7.0.00.1600.01014.44

preferences:
69.35 ms | 401 KiB | 5 Q