3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php preg_match('/^[\d]$/', '1000', $matches); print_r ($matches);

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.60.0030.01017.05
7.2.00.0090.00619.66
7.1.200.0100.00315.97
7.1.100.0070.00718.29
7.1.70.0070.00317.21
7.1.60.0060.01019.70
7.1.50.0070.01116.99
7.1.00.0030.07722.37
7.0.200.0240.00016.53
7.0.140.0000.07722.08
7.0.60.0030.06720.00
7.0.50.0030.05017.85
7.0.40.0100.07320.09
7.0.30.0270.03320.20
7.0.20.0230.08020.03
7.0.10.0100.05720.14
7.0.00.0170.05020.21
5.6.280.0170.06020.81
5.6.210.0030.08720.55
5.6.200.0070.07018.11
5.6.190.0130.06720.50
5.6.180.0330.07320.33
5.6.170.0230.07720.33
5.6.160.0100.08320.61
5.6.150.0030.07318.07
5.6.140.0030.08318.21
5.6.130.0070.07318.15
5.6.120.0030.08021.09
5.6.110.0100.05320.98
5.6.100.0030.06020.92
5.6.90.0100.03721.07
5.6.80.0100.07320.36
5.5.350.0200.06320.31
5.5.340.0100.07017.96
5.5.330.0100.04320.29
5.5.320.0330.06020.18
5.5.310.0330.05720.30
5.5.300.0070.03717.91
5.5.290.0000.07017.91
5.5.280.0070.08720.79
5.5.270.0070.04320.75
5.5.260.0070.04020.75
5.5.250.0070.06020.70
5.5.240.0030.07720.06
5.4.450.1800.04019.46
5.4.440.1970.04319.54
5.4.430.0370.05319.09
5.4.420.0070.04019.48
5.4.410.0370.05019.27
5.4.400.1770.04718.89
5.4.390.1970.04318.77
5.4.380.1730.04319.07
5.4.370.1930.03318.80
5.4.360.2070.04719.13
5.4.350.2030.04718.80
5.4.340.1830.04019.16
5.4.320.1900.03719.21
5.4.310.1930.03319.19
5.4.300.2000.04719.08
5.4.290.2200.04019.23
5.4.280.0630.04019.15
5.4.270.0000.04019.21
5.4.260.0030.04719.05
5.4.250.0230.03319.12
5.4.240.1830.04019.16
5.4.230.2100.04018.77
5.4.220.1900.03719.07
5.4.210.1830.03719.21
5.4.200.1930.03319.23
5.4.190.1870.03319.07
5.4.180.2030.04018.90
5.4.170.1870.03319.07
5.4.160.1870.04319.05
5.4.150.2030.04019.10
5.4.140.0030.04716.27
5.4.130.0070.03316.22
5.4.120.0700.03316.36
5.4.110.1870.03716.38
5.4.100.2000.03316.21
5.4.90.1930.03316.38
5.4.80.1970.04316.48
5.4.70.1800.03716.05
5.4.60.2030.04716.45
5.4.50.2070.04016.15
5.4.40.1870.03716.31
5.4.30.1970.04316.46
5.4.20.1930.04016.36
5.4.10.0100.06716.27
5.4.00.0000.08015.70
5.3.290.0770.06714.64
5.3.280.2030.04314.46
5.3.270.1930.04714.59
5.3.260.1900.03714.62
5.3.250.2000.04314.63
5.3.240.1770.04014.45
5.3.230.1830.04714.45
5.3.220.2000.04314.41
5.3.210.1830.03714.39
5.3.200.1830.04314.39
5.3.190.1030.05314.51
5.3.180.0100.03314.43
5.3.170.0070.07314.54
5.3.160.0830.04314.41
5.3.150.2030.03714.49
5.3.140.2130.04014.39
5.3.130.2100.04014.38
5.3.120.2030.03714.55
5.3.110.2100.04314.42
5.3.100.2030.04314.08
5.3.90.1930.03313.87
5.3.80.2070.04013.86
5.3.70.2030.04313.96
5.3.60.0100.06013.87
5.3.50.0000.04313.88
5.3.40.0030.04313.99
5.3.30.1430.03713.75
5.3.20.1830.04313.67
5.3.10.1770.03013.75
5.3.00.1970.05013.73
5.2.170.1470.03310.97
5.2.160.1700.03710.98
5.2.150.1900.02710.99
5.2.140.1500.03011.05
5.2.130.1800.03710.95
5.2.120.1730.03010.99
5.2.110.1670.03711.11
5.2.100.1330.03311.04
5.2.90.0030.06311.14
5.2.80.0030.06311.17
5.2.70.0200.05011.25
5.2.60.1700.02710.89
5.2.50.1500.03010.90
5.2.40.1170.03010.85
5.2.30.1200.03011.02
5.2.20.1200.03310.91
5.2.10.1230.02710.80
5.2.00.1400.04010.68
5.1.60.1300.02010.00
5.1.50.1470.0309.96
5.1.40.1230.0279.91
5.1.30.1470.03010.49
5.1.20.1230.02710.50
5.1.10.1300.02010.14
5.1.00.1270.0239.99
5.0.50.0000.0238.41
5.0.40.0030.0308.45
5.0.30.0030.0278.08
5.0.20.0030.0178.19
5.0.10.0000.0208.09
5.0.00.0030.0538.05
4.4.90.0000.0207.83
4.4.80.0000.0207.83
4.4.70.0030.0177.83
4.4.60.0000.0177.83
4.4.50.0630.0137.83
4.4.40.0630.0277.83
4.4.30.0770.0237.83
4.4.20.0600.0207.83
4.4.10.0870.0137.83
4.4.00.0670.0237.83
4.3.110.0700.0237.83
4.3.100.0600.0177.83
4.3.90.0630.0207.83
4.3.80.0600.0277.83
4.3.70.0830.0207.83
4.3.60.0630.0137.83
4.3.50.0630.0177.83
4.3.40.0600.0277.83
4.3.30.0300.0177.83
4.3.20.0030.0177.83
4.3.10.0300.0177.83
4.3.00.0400.0207.83