3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Author: holdoffhunger@gmail.com $hexadecimal_number = "1234567890aBcDeF"; $binary_number = base_convert($hexadecimal_number, 16, 2); print($binary_number); ?>

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.0rc40.0130.01098.72
7.3.0rc30.0120.00316.39
7.3.0beta10.0080.00312.46
7.3.0alpha10.0060.00312.81
7.2.60.0200.00916.52
7.2.00.0060.00919.40
7.1.200.0060.00615.69
7.1.100.0030.01318.00
7.1.70.0100.00516.80
7.1.60.0030.02019.31
7.1.50.0030.01716.86
7.1.00.0100.06022.33
7.0.200.0000.00716.58
7.0.140.0030.07322.13
7.0.120.0030.07321.92
7.0.60.0100.07019.94
7.0.50.0070.05317.66
7.0.40.0130.07719.96
7.0.30.0300.04020.09
7.0.20.0200.05319.99
7.0.10.0170.07320.06
7.0.00.0070.06020.29
5.6.280.0030.07320.88
5.6.210.0070.04020.70
5.6.200.0130.07718.13
5.6.190.0030.06020.49
5.6.180.0400.05720.37
5.6.170.0270.05020.49
5.6.160.0170.05020.62
5.6.150.0130.06018.19
5.6.140.0070.07718.11
5.6.130.0070.07018.20
5.6.120.0070.06720.97
5.6.110.0100.08021.00
5.6.100.0130.08020.97
5.6.90.0130.06721.09
5.6.80.0130.07320.41
5.6.70.0270.07020.39
5.5.350.0230.06720.32
5.5.340.0030.08717.98
5.5.330.0100.03720.07
5.5.320.0200.08020.07
5.5.310.0400.07320.29
5.5.300.0070.06017.92
5.5.290.0070.07017.93
5.5.280.0100.04320.79
5.5.270.0070.04320.85
5.5.260.0100.03720.86
5.5.250.0070.08320.64
5.5.240.0070.06720.36
5.4.450.0070.05719.11
5.4.440.0070.07719.50
5.4.430.0070.03719.50
5.4.420.0030.04719.50
5.4.410.0170.03019.37
5.4.400.0070.06319.16
5.4.390.0170.04019.18
5.4.380.0030.06019.18
5.4.370.0100.03719.09
5.4.360.0030.04018.91
5.4.350.0100.06019.09
5.4.340.0070.04719.17
5.4.320.0070.06318.81
5.4.310.0100.05318.80
5.4.300.0000.05719.13
5.4.290.0000.08019.14
5.4.280.0100.06018.82
5.4.270.0070.07319.11
5.4.260.0030.04019.09
5.4.250.0070.04319.07
5.4.240.0030.06719.16
5.4.230.0130.03718.78
5.4.220.0070.07019.13
5.4.210.0100.04319.11
5.4.200.0100.07719.07
5.4.190.0030.07319.10
5.4.180.0100.06318.78
5.4.170.0070.07318.91
5.4.160.0070.07318.77
5.4.150.0030.03718.89
5.4.140.0030.03716.36
5.4.130.0070.03316.25
5.4.120.0000.03716.24
5.4.110.0000.04316.37
5.4.100.0000.03716.32
5.4.90.0030.03716.41
5.4.80.0100.03016.22
5.4.70.0030.04316.26
5.4.60.0000.03716.13
5.4.50.0030.03316.36
5.4.40.0000.03716.26
5.4.30.0130.02316.34
5.4.20.0070.04016.23
5.4.10.0070.03316.27
5.4.00.0070.03015.80
5.3.290.0030.04314.61
5.3.280.0000.06014.54
5.3.270.0070.07014.52
5.3.260.0100.04014.52
5.3.250.0030.03714.58
5.3.240.0000.04314.54
5.3.230.0030.03714.51
5.3.220.0000.04714.54
5.3.210.0000.04014.38
5.3.200.0070.03314.49
5.3.190.0030.04014.38
5.3.180.0070.03314.48
5.3.170.0070.03314.48
5.3.160.0030.03714.54
5.3.150.0070.03014.50
5.3.140.0070.03314.47
5.3.130.0070.03314.46
5.3.120.0030.03714.48
5.3.110.0000.04014.46
5.3.100.0070.03313.98
5.3.90.0030.03313.96
5.3.80.0000.03713.85
5.3.70.0000.03713.98
5.3.60.0030.03313.94
5.3.50.0070.03013.88
5.3.40.0070.04013.73
5.3.30.0070.03013.87
5.3.20.0030.03313.62
5.3.10.0000.03713.62
5.3.00.0030.03713.45
5.2.170.0000.03011.02
5.2.160.0000.03011.09
5.2.150.0000.03011.07
5.2.140.0000.03010.99
5.2.130.0030.02711.05
5.2.120.0000.03311.25
5.2.110.0000.03011.02
5.2.100.0030.02711.04
5.2.90.0030.02711.18
5.2.80.0000.03010.99
5.2.70.0030.03011.02
5.2.60.0000.03010.98
5.2.50.0100.02011.09
5.2.40.0000.03010.93
5.2.30.0030.02710.84
5.2.20.0030.02710.88
5.2.10.0000.03710.81
5.2.00.0070.05310.73
5.1.60.0030.05010.00
5.1.50.0070.02710.09
5.1.40.0030.03010.12
5.1.30.0030.05710.33
5.1.20.0070.05310.30
5.1.10.0030.0309.96
5.1.00.0030.03310.10
5.0.50.0070.0238.55
5.0.40.0030.0438.46
5.0.30.0000.0438.19
5.0.20.0000.0508.25
5.0.10.0000.0508.07
5.0.00.0030.0538.05
4.4.90.0000.0137.63
4.4.80.0030.0107.63
4.4.70.0030.0137.63
4.4.60.0000.0177.63
4.4.50.0030.0177.63
4.4.40.0070.0277.63
4.4.30.0130.0107.63
4.4.20.0030.0237.63
4.4.10.0030.0207.63
4.4.00.0000.0337.63
4.3.110.0030.0207.63
4.3.100.0000.0337.63
4.3.90.0000.0337.63
4.3.80.0070.0437.63
4.3.70.0000.0307.63
4.3.60.0030.0337.63
4.3.50.0030.0377.63
4.3.40.0030.0377.63
4.3.30.0030.0337.63
4.3.20.0000.0237.63
4.3.10.0000.0277.63
4.3.00.0000.0377.63