3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $in2 = 'Last 5 seconds input rate 1304159.37 bytes/sec, 10433275 bits/sec, 942.59 packets/sec'; preg_match('~bytes/sec, (.*?) bits/sec~', $in2 $out2); echo $out2;
based on Kvnqk

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.0.20.0330.07320.33
7.0.10.0100.05720.06
7.0.00.0030.08720.20
5.6.160.0030.05020.61
5.6.150.0070.07318.15
5.6.140.0170.07018.28
5.6.130.0070.08718.20
5.6.120.0100.08721.05
5.6.110.0070.07020.99
5.6.100.0100.08020.97
5.6.90.0130.07720.96
5.6.80.0130.07020.40
5.5.300.0070.07717.99
5.5.290.0030.08317.95
5.5.280.0130.07320.79
5.5.270.0070.04320.72
5.5.260.0030.08320.75
5.5.250.0200.06720.79
5.5.240.0230.03020.25
5.4.450.0270.05719.36
5.4.440.0930.05019.45
5.4.430.0470.05719.17
5.4.420.0670.06019.55
5.4.410.0700.05019.04
5.4.400.0700.05019.15
5.4.390.0570.06018.94
5.4.380.0770.05319.14
5.4.370.0730.04719.23
5.4.360.0130.05019.07
5.4.350.0430.04719.02
5.4.340.0730.04719.09
5.4.320.0470.04719.03
5.4.310.0630.05719.14
5.4.300.0730.05018.92
5.4.290.0730.05019.23
5.4.280.0630.05319.12
5.4.270.0500.06019.05
5.4.260.0400.05019.15
5.4.250.0830.04319.02
5.4.240.0730.05319.14
5.4.230.0630.05019.05
5.4.220.1000.05719.02
5.4.210.0900.04718.98
5.4.200.0930.03719.12
5.4.190.0730.05318.92
5.4.180.0870.04718.84
5.4.170.0830.05318.93
5.4.160.0570.06018.92
5.4.150.0800.05318.95
5.4.140.0800.05316.55
5.4.130.0730.04316.47
5.4.120.0100.05316.40
5.4.110.0230.05316.51
5.3.290.0700.05714.48
5.3.280.0770.07014.45
5.3.270.0770.04714.61
5.3.260.0730.06014.47
5.3.250.0900.05314.45
5.3.240.0700.04714.47
5.3.230.0600.05314.60
5.3.220.0200.05014.47
5.3.210.0300.05014.46