3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $iv = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM); $key = "0123456789123456"; $plain = "id=1"; $res = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $plain, "cbc", $iv); $res = base64_encode($iv.$res); $res = base64_decode($res); $iv = substr($res,0, 16); $res = substr($res, 16, strlen($res)-16); $res = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $res, "cbc", $iv); $res = str_replace("\x00", "", $res); parse_str($res, $arr); var_dump($arr);
based on L5eAD

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.10.0090.00916.56
7.3.00.0030.01216.51
7.2.130.0000.01016.75
7.2.120.0040.01416.75
7.2.110.0060.00916.86
7.2.100.0000.01216.63
7.2.90.0070.01016.78
7.2.80.0070.00716.51
7.2.70.0100.00016.75
7.2.60.0050.01016.67
7.2.50.0040.00716.95
7.2.40.0070.00716.84
7.2.30.0030.01016.84
7.2.20.0000.01016.67
7.2.10.0060.00916.79
7.2.00.0060.00817.84
7.1.250.0070.00715.57
7.1.200.0000.01315.43
7.1.100.0080.00817.96
7.1.70.0000.00916.74
7.1.60.0150.00920.03
7.1.50.0170.01734.41
7.1.00.0000.07722.45
7.0.200.0070.00016.64
7.0.100.0070.07320.06
7.0.90.0170.06320.03
7.0.80.0030.09019.86
7.0.70.0130.06319.92
7.0.60.0100.07019.86
7.0.50.0070.08020.34
7.0.40.0130.08020.27
7.0.30.0000.07019.98
7.0.20.0170.07320.20
7.0.10.0030.08320.13
7.0.00.0100.08320.20
5.6.280.0000.04720.92
5.6.250.0130.08020.71
5.6.240.0100.08320.68
5.6.230.0130.07320.66
5.6.220.0100.07320.53
5.6.210.0100.05020.60
5.6.200.0130.08021.15
5.6.190.0200.07721.15
5.6.180.0070.08321.01
5.6.170.0070.08021.12
5.6.160.0030.06321.07
5.6.150.0130.07721.15
5.6.140.0130.07321.04
5.6.130.0100.06321.15
5.6.120.0100.08021.04
5.6.110.0000.08021.04
5.6.100.0070.06021.10
5.6.90.0170.07321.02
5.6.80.0100.08020.42
5.6.70.0070.07020.45
5.6.60.0100.06720.38
5.6.50.0100.06720.43
5.6.40.0170.07020.48
5.6.30.0130.08020.43
5.6.20.0130.07020.52
5.6.10.0030.08020.45
5.6.00.0130.07320.46
5.5.380.0100.08020.45
5.5.370.0070.08020.49
5.5.360.0000.09020.53
5.5.350.0100.08020.43
5.5.340.0100.08320.89
5.5.330.0070.08020.80
5.5.320.0100.08720.67
5.5.310.0130.07020.89
5.5.300.0130.07720.80
5.5.290.0070.06020.86
5.5.280.0130.06720.66
5.5.270.0130.06720.86
5.5.260.0100.07720.82
5.5.250.0130.04320.68
5.5.240.0030.08320.21
5.5.230.0130.06720.20
5.5.220.0070.08020.21
5.5.210.0100.07320.35
5.5.200.0130.07320.21
5.5.190.0130.07320.27
5.5.180.0130.07020.13
5.5.160.0070.08020.15
5.5.150.0070.08020.14
5.5.140.0070.08320.29
5.5.130.0130.07020.30
5.5.120.0100.07020.14
5.5.110.0100.07720.29
5.5.100.0170.06720.25
5.5.90.0070.07720.14
5.5.80.0030.08020.15
5.5.70.0170.06320.16
5.5.60.0130.05720.10
5.5.50.0070.04020.10
5.5.40.0100.07020.17
5.5.30.0070.04020.09
5.5.20.0030.04020.12
5.5.10.0130.03020.08
5.5.00.0030.04020.11
5.4.450.0100.07319.32
5.4.440.0100.08019.17
5.4.430.0030.07719.22
5.4.420.0100.07319.47
5.4.410.0070.07719.27
5.4.400.0100.07319.23
5.4.390.0130.04019.05
5.4.380.0070.07319.12
5.4.370.0200.05319.07
5.4.360.0070.08019.07
5.4.350.0170.06019.23
5.4.340.0100.08019.08
5.4.320.0100.07019.10
5.4.310.0100.07018.96
5.4.300.0130.07319.24
5.4.290.0000.05718.84
5.4.280.0100.07718.90
5.4.270.0070.07319.14
5.4.260.0030.08318.98
5.4.250.0130.06719.04
5.4.240.0030.07019.14
5.4.230.0000.08319.09
5.4.220.0130.03019.07
5.4.210.0100.03018.88
5.4.200.0070.03319.11
5.4.190.0030.04019.05
5.4.180.0000.04018.86
5.4.170.0000.04319.02
5.4.160.0070.05718.93
5.4.150.0000.04319.01
5.4.140.0000.04016.44
5.4.130.0070.05316.34
5.4.120.0030.04016.40
5.4.110.0030.03716.36
5.4.100.0000.04016.48
5.4.90.0100.03716.43
5.4.80.0030.06716.35
5.4.70.0100.04716.29
5.4.60.0030.04016.35
5.4.50.0030.04316.44
5.4.40.0100.03316.30
5.4.30.0070.04016.36
5.4.20.0000.04016.43
5.4.10.0030.04016.28
5.4.00.0030.04015.91