3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php preg_match('/a-z/', 'Hello', $match); var_dump($match);

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.3.10.0090.00616.71
7.3.00.0110.00416.58
7.2.130.0040.01116.61
7.2.120.0090.00616.89
7.2.110.0030.00916.64
7.2.100.0030.01316.90
7.2.90.0090.00616.81
7.2.80.0040.01016.98
7.2.70.0110.00416.93
7.2.60.0120.00317.07
7.2.50.0060.00617.03
7.2.40.0070.00717.09
7.2.30.0080.00816.82
7.2.20.0110.00416.91
7.2.10.0130.00317.04
7.2.00.0040.01017.96
7.1.250.0100.00315.87
7.1.100.0000.01018.05
7.1.70.0000.01217.29
7.1.60.0120.00319.70
7.1.50.0230.01334.61
7.1.00.0070.07022.39
7.0.200.0030.00716.86
7.0.140.0070.07022.18
7.0.80.0630.07719.92
7.0.70.0570.08019.89
7.0.60.0400.07719.87
7.0.50.0670.07720.34
7.0.40.0070.08320.14
7.0.30.0100.08720.11
7.0.20.0130.08020.15
7.0.10.0070.08320.10
7.0.00.0070.08720.05
5.6.280.0070.06721.09
5.6.230.0070.08020.67
5.6.220.0030.05020.57
5.6.210.0270.06720.68
5.6.200.0070.09021.11
5.6.190.0070.09021.13
5.6.180.0100.07020.95
5.6.170.0130.08021.05
5.6.160.0130.04320.93
5.6.150.0100.07720.99
5.6.140.0000.05021.00
5.6.130.0130.08021.07
5.6.120.0030.05721.01
5.6.110.0070.08321.06
5.6.100.0100.08321.09
5.6.90.0130.08321.03
5.6.80.0070.06720.52
5.6.70.0000.07720.39
5.6.60.0030.08720.53
5.6.50.0100.06320.30
5.6.40.0100.07720.30
5.6.30.0070.08020.43
5.6.20.0100.07720.35
5.6.10.0130.06320.46
5.6.00.0070.06720.36
5.5.370.0070.08020.44
5.5.360.0000.07320.37
5.5.350.0230.06720.47
5.5.340.0100.07720.76
5.5.330.0130.06320.83
5.5.320.0030.08320.71
5.5.310.0030.08720.82
5.5.300.0070.08020.89
5.5.290.0030.07720.91
5.5.280.0100.08320.91
5.5.270.0100.05720.74
5.5.260.0030.08020.86
5.5.250.0070.07020.60
5.5.240.0200.06320.15
5.5.230.0000.08320.25
5.5.220.0070.08020.29
5.5.210.0100.07020.28
5.5.200.0100.08020.10
5.5.190.0100.07720.23
5.5.180.0070.08320.14
5.5.160.0070.06720.26
5.5.150.0070.04720.26
5.5.140.0170.06720.18
5.5.130.0170.07020.22
5.5.120.0130.07020.10
5.5.110.0130.06720.09
5.5.100.0030.07020.15
5.5.90.0030.08320.04
5.5.80.0130.06720.14
5.5.70.0070.08019.93
5.5.60.0070.06320.04
5.5.50.0070.08319.93
5.5.40.0100.06720.05
5.5.30.0000.08320.13
5.5.20.0070.08320.10
5.5.10.0070.04720.01
5.5.00.0130.07019.99
5.4.450.0070.05319.50
5.4.440.0130.07319.20
5.4.430.0070.07319.36
5.4.420.0100.07019.26
5.4.410.0030.06719.22
5.4.400.0130.07318.79
5.4.390.0030.07719.07
5.4.380.0100.07718.96
5.4.370.0070.06718.96
5.4.360.0130.05719.00
5.4.350.0070.08319.23
5.4.340.0170.07018.96
5.4.320.0070.08019.14
5.4.310.0070.07719.06
5.4.300.0070.07719.03
5.4.290.0100.05719.11
5.4.280.0100.07719.09
5.4.270.0200.05018.95
5.4.260.0100.06719.21
5.4.250.0030.08019.02
5.4.240.0100.07319.02
5.4.230.0100.07019.11
5.4.220.0030.07718.97
5.4.210.0130.04319.04
5.4.200.0100.07018.97
5.4.190.0130.06319.06
5.4.180.0100.07318.95
5.4.170.0130.06318.96
5.4.160.0100.07319.12
5.4.150.0000.08019.12
5.4.140.0070.07316.38
5.4.130.0030.07316.39
5.4.120.0070.07016.32
5.4.110.0030.05016.21
5.4.100.0030.07716.38
5.4.90.0100.04016.36
5.4.80.0070.04716.25
5.4.70.0030.05316.43
5.4.60.0130.05716.20
5.4.50.0170.05316.35
5.4.40.0100.05716.52
5.4.30.0100.06716.38
5.4.20.0130.04716.21
5.4.10.0030.07716.39
5.4.00.0070.07015.70
5.3.290.0100.07314.65
5.3.280.0100.06714.41
5.3.270.0000.08014.56
5.3.260.0070.07714.51
5.3.250.0130.06314.46
5.3.240.0070.04314.55
5.3.230.0000.05014.53
5.3.220.0100.05714.54
5.3.210.0070.08014.39
5.3.200.0100.07314.57
5.3.190.0100.07314.54
5.3.180.0030.07014.42
5.3.170.0070.03314.53
5.3.160.0030.07714.47
5.3.150.0100.07314.55
5.3.140.0070.07314.54
5.3.130.0000.08314.45
5.3.120.0030.07314.50
5.3.110.0070.07014.52
5.3.100.0070.08013.97
5.3.90.0070.07313.88
5.3.80.0070.07313.95
5.3.70.0100.06713.87
5.3.60.0130.07013.93
5.3.50.0070.06313.92
5.3.40.0030.07713.69
5.3.30.0100.06313.81
5.3.20.0100.06713.64
5.3.10.0130.06013.63
5.3.00.0070.06713.48
5.2.170.0100.06011.54
5.2.160.0030.05711.54
5.2.150.0100.06011.54
5.2.140.0070.05711.54
5.2.130.0000.05311.54
5.2.120.0030.06311.54
5.2.110.0100.05711.54
5.2.100.0070.05711.54
5.2.90.0100.05311.54
5.2.80.0100.04711.54
5.2.70.0070.04311.54
5.2.60.0130.06011.54
5.2.50.0130.05311.54
5.2.40.0070.06311.54
5.2.30.0070.06011.54
5.2.20.0030.05711.54
5.2.10.0100.05311.54
5.2.00.0130.05011.54
5.1.60.0030.05311.54
5.1.50.0000.04011.54
5.1.40.0070.05011.54
5.1.30.0030.06311.54
5.1.20.0070.05711.54
5.1.10.0030.05711.54
5.1.00.0100.05011.54
5.0.50.0070.04011.54
5.0.40.0030.04011.54
5.0.30.0030.05711.54
5.0.20.0030.04311.54
5.0.10.0030.04311.54
5.0.00.0030.06311.54
4.4.90.0000.02711.54
4.4.80.0000.03711.54
4.4.70.0000.02311.54
4.4.60.0030.03311.54
4.4.50.0030.03311.54
4.4.40.0070.04011.54
4.4.30.0070.03311.54
4.4.20.0100.01711.54
4.4.10.0070.03011.54
4.4.00.0000.05711.54
4.3.110.0070.02311.54
4.3.100.0070.03011.54
4.3.90.0030.03311.54
4.3.80.0000.05711.54
4.3.70.0070.03011.54
4.3.60.0070.02711.54
4.3.50.0030.03711.54
4.3.40.0070.05011.54
4.3.30.0000.03311.54
4.3.20.0000.04011.54
4.3.10.0000.03311.54
4.3.00.0030.02711.54