3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $block = mcrypt_get_block_size('des', 'ecb'); $pad = $block - (strlen(1) % $block); $str .= str_repeat(chr($pad), $pad); echo rawurlencode(mcrypt_encrypt(MCRYPT_DES, 'd9daa', 1, MCRYPT_MODE_ECB));
based on tPWu7

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.00.0120.00316.54
7.2.130.0100.00716.82
7.2.120.0130.00316.39
7.2.110.0000.01116.75
7.2.100.0100.00316.73
7.2.90.0000.01316.92
7.2.80.0070.00716.72
7.2.70.0000.01516.46
7.2.60.0100.00516.76
7.2.50.0030.01016.84
7.2.40.0030.01016.91
7.2.30.0090.00316.52
7.2.20.0040.00816.61
7.2.10.0150.00016.94
7.2.00.0070.00818.06
7.1.250.0030.01015.73
7.1.240.0070.00715.59
7.1.230.0040.00815.57
7.1.220.0110.00415.39
7.1.210.0000.01515.43
7.1.200.0060.00615.36
7.1.190.0030.01015.68
7.1.180.0060.00315.58
7.1.170.0090.00315.53
7.1.160.0100.00615.45
7.1.150.0070.00715.71
7.1.140.0000.01115.70
7.1.130.0080.00315.74
7.1.120.0060.00315.48
7.1.110.0040.00815.75
7.1.100.0040.00716.70
7.1.90.0060.00915.55
7.1.80.0040.00815.63
7.1.70.0070.00616.22
7.1.60.0110.00617.48
7.1.50.0050.01016.20
7.1.40.0090.00315.50
7.1.30.0030.00615.71
7.1.20.0070.00715.36
7.1.10.0200.00315.57
7.1.00.0050.04219.10
7.0.330.0050.00515.29
7.0.320.0100.00015.46
7.0.310.0090.00015.00
7.0.300.0070.00715.02
7.0.290.0060.01115.34
7.0.280.0090.00615.14
7.0.270.0070.00715.16
7.0.260.0040.00415.43
7.0.250.0000.00915.35
7.0.240.0000.01215.43
7.0.230.0040.01115.47
7.0.220.0000.00815.26
7.0.210.0000.01015.26
7.0.200.0020.00915.88
7.0.190.0040.00415.16
7.0.180.0030.00915.27
7.0.170.0070.00715.48
7.0.160.0040.00815.19
7.0.150.0030.00715.23
7.0.140.0060.01015.32
7.0.130.0090.00315.16
7.0.120.0110.00315.37
7.0.110.0070.00715.32
7.0.100.0000.01215.18
7.0.90.0050.01014.96
7.0.80.0040.01115.20
7.0.70.0110.00315.42
7.0.60.0090.02517.54
7.0.50.0070.02216.69
7.0.40.0100.03816.69
7.0.30.0260.03516.87
7.0.20.0180.04416.70
7.0.10.0030.04916.87
7.0.00.0030.05016.78
hhvm-3.22.00.0570.13390.57
hhvm-3.21.30.0750.13489.79
hhvm-3.21.00.0460.12890.42
hhvm-3.20.20.0490.12690.08
hhvm-3.19.20.0740.12189.88
hhvm-3.18.50.0630.15289.04
hhvm-3.18.40.0540.12188.93
hhvm-3.17.30.0440.13987.76
hhvm-3.15.40.0480.10385.28
hhvm-3.13.20.0370.13096.86
hhvm-3.12.140.0530.11695.58
hhvm-3.11.10.0530.11387.68
hhvm-3.10.10.0500.11384.77
5.6.380.0060.00614.13
5.6.370.0030.00614.13
5.6.360.0030.01013.98
5.6.350.0030.00713.94
5.6.340.0030.01013.88
5.6.330.0030.00613.80
5.6.320.0040.01114.31
5.6.310.0060.00313.82
5.6.300.0000.01314.45
5.6.290.0030.00514.28
5.6.280.0030.02317.52
5.6.270.0080.00514.20
5.6.260.0090.00014.41
5.6.250.0030.00614.30
5.6.240.0090.00613.93
5.6.230.0040.01114.17
5.6.220.0030.00914.36
5.6.210.0110.03917.39
5.6.200.0050.04016.13
5.6.190.0070.03517.27
5.6.180.0160.02017.30
5.6.170.0200.03517.16
5.6.160.0050.04917.16
5.6.150.0090.03816.19
5.6.140.0050.04316.13
5.6.130.0120.03916.23
5.6.120.0040.04117.63
5.6.110.0120.03017.44
5.6.100.0100.04017.57
5.6.90.0030.02517.50
5.6.80.0060.04217.26
5.6.70.0030.01314.04
5.6.60.0000.00814.15
5.6.50.0030.00913.95
5.6.40.0060.00913.93
5.6.30.0090.00614.18
5.6.20.0070.00414.02
5.6.10.0040.00714.01
5.6.00.0040.01114.02
5.5.380.0000.01010.77
5.5.370.0000.01310.73
5.5.360.0030.00610.58
5.5.350.0080.03815.59
5.5.340.0070.03614.44
5.5.330.0030.04615.46
5.5.320.0040.04215.67
5.5.310.0150.02315.42
5.5.300.0070.04314.32
5.5.290.0080.04214.39
5.5.280.0060.03315.80
5.5.270.0030.02115.88
5.5.260.0030.04415.78
5.5.250.0030.03815.61
5.5.240.1370.02015.53
5.5.230.0060.00310.82
5.5.220.0060.00310.78
5.5.210.0000.01010.52
5.5.200.0040.00410.55
5.5.190.0030.00310.87
5.5.180.0000.01110.86
5.5.170.0000.00610.89
5.5.160.0000.01210.91
5.5.150.0030.00310.91
5.5.140.0060.00610.61
5.5.130.0060.00610.57
5.5.120.0000.00910.59
5.5.110.0110.00010.71
5.5.100.0060.00610.49
5.5.90.0060.00010.80
5.5.80.0030.00610.82
5.5.70.0060.00310.94
5.5.60.0090.00310.56
5.5.50.0100.00010.52
5.5.40.0080.00310.87
5.5.30.0030.00310.57
5.5.20.0060.00310.63
5.5.10.0030.00310.91
5.5.00.0000.00610.76
5.4.450.0570.05719.56
5.4.440.0570.08319.50
5.4.430.0530.05319.34
5.4.420.0600.06019.28
5.4.410.0630.05718.99
5.4.400.0700.05319.29
5.4.390.0800.04318.80
5.4.380.0770.04319.29
5.4.370.0600.05718.96
5.4.360.0700.06719.16
5.4.350.0500.06719.19
5.4.340.0700.07319.11
5.4.320.0670.05319.18
5.4.310.0570.06019.36
5.4.300.0670.04719.01
5.4.290.0670.04719.30
5.4.280.0700.05018.96
5.4.270.0630.05319.34
5.4.260.0570.04718.79
5.4.250.0500.06719.25
5.4.240.0500.05718.96
5.4.230.0500.05019.34
5.4.220.0600.05319.13
5.4.210.0630.04718.95
5.4.200.0600.05018.79
5.4.190.0570.06018.80
5.4.180.0600.05018.94
5.4.170.0600.05319.04
5.4.160.0770.05319.28
5.4.150.0530.06018.94
5.4.140.0400.06716.55
5.4.130.0600.05016.27
5.4.120.0800.05316.32
5.4.110.0600.04316.59
5.4.100.0500.05316.43
5.4.90.0500.05016.32
5.3.290.0530.06014.61
5.3.280.0500.05014.42
5.3.270.0570.05014.44
5.3.260.0470.06714.63
5.3.250.0570.05714.70
5.3.240.0600.05314.45
5.3.230.0500.06314.49
5.3.220.0770.05714.54
5.3.210.0530.05314.45
5.3.200.0500.06014.54
5.3.190.0570.05014.66