3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str2 = hex2bin("301854aac00444dedfc6bdee"); echo mb_detect_encoding($str2);
based on Ko8K9

Here you find the average performance (time & memory) of each version. A greyed 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.2.00.0030.01219.52
7.1.100.0000.01418.03
7.1.70.0130.01015.38
7.1.60.0240.01033.12
7.1.50.0240.01032.85
7.1.40.0310.00732.55
7.1.30.0280.00932.62
7.1.20.0290.00632.95
7.1.10.0190.00414.69
7.1.00.0140.00714.89
7.0.200.0130.00914.86
7.0.190.0130.00714.73
7.0.180.0200.00314.40
7.0.170.0100.01014.24
7.0.160.0150.00614.25
7.0.150.0130.01014.52
7.0.140.0110.01114.38
7.0.130.0410.01016.60
7.0.120.0120.00016.38
7.0.110.0100.00316.39
7.0.100.0060.00616.27
7.0.90.0030.00916.33
7.0.80.0000.01316.39
7.0.70.0040.00816.13
7.0.60.0040.00816.03
7.0.50.0060.00616.19
7.0.40.0000.01216.46
7.0.30.0000.01216.32
7.0.20.0000.01216.24
7.0.10.0090.00316.32
7.0.00.0060.00616.11
hhvm-3.15.40.0580.14284.88
5.6.300.0200.04920.91
5.6.290.0130.05120.57
5.6.280.0100.05920.77
5.6.270.0030.06320.92
5.6.260.0100.06320.86
5.6.250.0190.04521.01
5.6.240.0100.05920.71
5.6.230.0030.06420.94
5.6.220.0100.05520.91
5.6.210.0100.05420.52
5.6.200.0130.06120.72
5.6.190.0140.05320.71
5.6.180.0140.04920.71
5.6.170.0070.05820.91
5.6.160.0140.05220.71
5.6.150.0160.05320.71
5.6.140.0030.06420.87
5.6.130.0100.05420.70
5.6.120.0100.06020.81
5.6.110.0200.04720.80
5.6.100.0130.05420.73
5.6.90.0030.06020.89
5.6.80.0200.04620.29
5.6.70.0230.03920.35
5.6.60.0060.05820.13
5.6.50.0100.05120.05
5.6.40.0100.05320.17
5.6.30.0170.04720.04
5.6.20.0040.06020.10
5.6.10.0100.05620.07
5.6.00.0030.06120.24