3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 'http://localhost/bareos-webui/job/details/53135%0AYou%20have%20messages'; $somenumber = 3421; preg_match("'\d{1,99}(?=%)?'", $a, $matches); print_r($matches[0]);
based on l5KNu

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.2.80.0070.00716.63
7.2.70.0000.01416.73
7.2.60.0070.00716.90
7.2.50.0100.00317.07
7.2.40.0040.01616.93
7.2.30.0070.00716.77
7.2.20.0100.00516.69
7.2.10.0110.00316.72
7.2.00.0050.00816.90
7.1.200.0100.00215.77
7.1.190.0060.00615.75
7.1.180.0030.01015.93
7.1.170.0070.00715.73
7.1.160.0120.00615.65
7.1.150.0030.00915.92
7.1.140.0040.00815.59
7.1.130.0090.00415.59
7.1.120.0090.00416.00
7.1.110.0030.01215.94
7.1.100.0100.00315.95
7.1.90.0060.00615.93
7.1.80.0080.00815.86
7.1.70.0030.01015.76
7.1.60.0220.01034.04
7.1.50.0220.01633.96
7.1.40.0250.00733.80
7.1.30.0220.00933.96
7.1.20.0300.00333.98
7.1.10.0110.00315.70
7.1.00.0110.00315.59
7.0.310.0090.00915.57
7.0.300.0040.00915.50
hhvm-3.22.00.0790.26190.88
hhvm-3.21.30.0810.20289.66
hhvm-3.18.50.0670.19489.01
5.6.300.0030.01213.97