3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $digits = '1234567890'; $alnum = '123test'; For($i = 0; $i < 100000; $i++) { preg_match('/^\d+$/D', $digits); preg_match('/^\d+$/D', $alnum); }
based on MPUK9

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.0110.03416.30
7.2.60.0070.02116.92
7.2.50.0070.02217.07
7.1.200.0030.02715.73
7.1.70.0070.03917.49
7.1.60.0100.05119.50
7.1.50.0000.02717.17
7.1.00.0030.10722.38
7.0.200.0130.02015.22
7.0.140.0030.10722.08
7.0.60.0030.11319.88
7.0.50.0070.11317.91
7.0.40.0100.10719.92
7.0.30.0330.10020.11
7.0.20.0370.06320.18
7.0.10.0230.07020.03
7.0.00.0070.06720.21
5.6.210.0070.13320.53
5.6.200.0100.16718.26
5.6.190.0070.12720.41
5.6.180.0270.15020.57
5.6.170.0200.16320.48
5.6.160.0070.17320.50
5.6.150.0130.12318.17
5.6.140.0030.12718.14
5.6.130.0070.17718.12
5.6.120.0070.16720.99
5.6.110.0130.14021.07
5.6.100.0130.15321.00
5.6.90.0070.11320.98
5.6.80.0030.12320.40
5.6.70.0370.13320.43
5.5.350.0030.18020.38
5.5.340.0100.18018.00
5.5.330.0130.16320.19
5.5.320.0300.15720.13
5.5.310.0200.13720.41
5.5.300.0070.14317.95
5.5.290.0100.16718.01
5.5.280.0100.12720.79
5.5.270.0130.14020.86
5.5.260.0070.17720.88
5.5.250.0030.12020.79
5.5.240.0030.16320.25
5.4.450.0130.14319.48
5.4.440.0770.15319.27
5.4.430.0830.13719.37
5.4.420.0770.15019.43
5.4.410.0970.16319.29
5.4.400.0300.20318.50
5.4.390.0530.24718.49
5.4.380.0630.13718.49
5.4.370.0470.16718.71
5.4.360.0370.16018.68
5.4.350.0500.13018.72
5.4.340.0570.14018.45
5.4.320.0570.22018.54
5.4.310.0630.15018.49
5.4.300.0330.14718.62
5.4.290.0330.18018.49
5.4.280.0530.16018.59
5.4.270.0570.14718.71
5.4.260.0470.13718.68
5.4.250.0330.16318.70
5.4.240.0400.15318.57
5.4.230.0630.22318.54
5.4.220.0730.18018.54
5.4.210.0630.15018.58
5.4.200.0400.15016.40
5.4.190.0470.14718.50
5.4.180.0530.14718.66
5.4.170.0470.16318.52
5.4.160.0430.13718.77
5.4.150.0300.15018.49
5.4.140.0330.13716.35
5.4.130.0270.15716.26
5.4.120.0330.16016.14
5.4.110.0430.14716.04
5.4.100.0300.15016.29
5.4.90.0600.15016.26
5.4.80.0400.15716.20
5.4.70.0430.15016.14
5.4.60.0530.23716.16
5.4.50.0430.21716.26
5.4.40.0470.14316.13
5.4.30.0470.15716.02
5.4.20.0600.14316.21
5.4.10.0570.13716.13
5.4.00.0500.14315.73
5.3.290.0330.17314.66
5.3.280.0530.15014.55
5.3.270.0400.16014.58
5.3.260.0430.15014.58
5.3.250.0470.15714.65
5.3.240.0600.22314.60
5.3.230.0330.14014.57
5.3.220.0170.18314.65
5.3.210.0500.16014.47
5.3.200.0530.15714.54
5.3.190.0400.16314.48
5.3.180.0270.16014.61
5.3.170.0400.15714.47
5.3.160.0570.17014.65
5.3.150.0500.17714.63
5.3.140.0670.27314.46
5.3.130.0600.22014.44
5.3.120.0470.27014.59
5.3.110.0470.21014.53
5.3.100.0630.18014.04
5.3.90.0270.20314.11
5.3.80.0330.14714.00
5.3.70.0430.15314.00
5.3.60.0630.16313.97
5.3.50.0470.17313.95
5.3.40.0600.16713.94
5.3.30.0470.21714.00
5.3.20.0500.15013.68
5.3.10.0370.26313.64
5.3.00.0500.24313.54
5.2.170.0230.22311.41
5.2.160.0570.20311.41
5.2.150.0500.26011.41
5.2.140.0530.27011.41
5.2.130.0570.22011.41
5.2.120.0370.19011.41
5.2.110.0270.22711.41
5.2.100.0500.18311.41
5.2.90.0330.15311.41
5.2.80.0370.17311.41
5.2.70.0400.14711.41
5.2.60.0570.16011.41
5.2.50.0500.15311.41
5.2.40.0270.17311.41
5.2.30.0200.27711.41
5.2.20.0430.18311.41
5.2.10.0470.15311.41
5.2.00.0330.17011.41
5.1.60.0170.13711.41
5.1.50.0230.15711.41
5.1.40.0330.17311.41
5.1.30.0370.25011.41
5.1.20.0400.22311.41
5.1.10.0500.22011.41
5.1.00.0300.14311.41
5.0.50.0270.16011.41
5.0.40.0230.15311.41
5.0.30.0270.19311.41
5.0.20.0270.19711.41
5.0.10.0230.18311.41
5.0.00.0130.19011.41
4.4.90.0130.15311.41
4.4.80.0130.17711.41
4.4.70.0330.15711.41
4.4.60.0100.16311.41
4.4.50.0200.17711.41
4.4.40.0230.18311.41
4.4.30.0230.20011.41
4.4.20.0200.18711.41
4.4.10.0200.24311.41
4.4.00.0170.23711.41
4.3.110.0230.26011.41
4.3.100.0100.15011.41
4.3.90.0130.15711.41
4.3.80.0170.19011.41
4.3.70.0070.16711.41
4.3.60.0130.14711.41
4.3.50.0030.16011.41
4.3.40.0170.15311.41
4.3.30.0070.17011.41
4.3.20.0000.16711.41
4.3.10.0100.13011.41
4.3.00.0030.1176.79