3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php preg_match('~(a)*~', str_repeat('a', 8000), $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.2.60.0060.01016.80
7.2.00.0000.01419.57
7.1.200.0030.00915.96
7.1.100.0060.00918.15
7.1.70.0000.00717.39
7.1.60.0060.01819.40
7.1.50.0160.00616.83
7.1.00.0070.07022.43
7.0.200.0050.00316.92
7.0.140.0000.09721.99
7.0.120.0070.06322.19
7.0.60.0130.08019.90
7.0.50.0070.05017.70
7.0.40.0130.08320.28
7.0.30.0330.07020.20
7.0.20.0300.07020.20
7.0.10.0230.09020.32
7.0.00.0030.04020.09
5.6.280.0070.07328.82
5.6.210.0170.08728.33
5.6.200.0030.09326.02
5.6.190.0100.09028.42
5.6.180.0170.06728.22
5.6.170.0330.04028.52
5.6.160.0100.08328.43
5.6.150.0030.04325.94
5.6.140.0030.04725.92
5.6.130.0130.04726.03
5.6.120.0100.05328.93
5.6.110.0170.05328.77
5.6.100.0170.06328.90
5.6.90.0100.04028.92
5.6.80.0100.08028.16
5.6.70.4470.04328.27
5.5.350.0370.05328.29
5.5.340.0030.08025.83
5.5.330.0170.07028.09
5.5.320.0400.06327.99
5.5.310.0370.06728.11
5.5.300.0170.05325.81
5.5.290.0070.04025.70
5.5.280.0170.07728.56
5.5.270.0100.09028.46
5.5.260.0100.08728.66
5.5.250.0100.08328.48
5.5.240.0070.08327.95
5.4.450.0370.04726.44
5.4.440.3500.04726.57
5.4.430.0200.07026.75
5.4.420.0200.05026.47
5.4.410.0230.05026.66
5.4.400.0370.05726.38
5.4.390.0230.04726.24
5.4.380.0400.03725.95
5.4.370.0070.04025.82
5.4.360.0100.05025.94
5.4.350.0090.04119.31
5.4.340.0110.04919.30
5.4.320.0120.04019.79
5.4.310.0120.05319.78
5.4.300.0070.04319.79
5.4.290.0120.03819.78
5.4.280.0080.04019.44
5.4.270.0080.04019.44
5.4.260.0110.03919.44
5.4.250.0080.04019.44
5.4.240.0090.03719.44
5.4.230.0080.04319.43
5.4.220.0080.04519.43
5.4.210.0120.04119.43
5.4.200.0120.05119.43
5.4.190.0130.04719.43
5.4.180.0110.04619.43
5.4.170.0090.04619.44
5.4.160.0090.03819.43
5.4.150.0090.04219.43
5.4.140.0100.04219.11
5.4.130.0120.03819.10
5.4.120.0170.04819.94
5.4.110.0130.04619.93
5.4.100.0120.04219.93
5.4.90.0120.04219.93
5.4.80.0100.04719.93
5.4.70.0110.04219.93
5.4.60.0110.04319.93
5.4.50.0130.04219.93
5.4.40.0130.04419.92
5.4.30.0120.04319.92
5.4.20.0120.04319.92
5.4.10.0090.04419.92
5.4.00.0110.04319.41
5.3.290.0110.04820.05
5.3.280.0110.04619.74
5.3.270.0090.04919.76
5.3.260.0120.04619.75
5.3.250.0110.04719.75
5.3.240.0100.04419.75
5.3.230.0100.04619.74
5.3.220.0100.04320.55
5.3.210.0110.04020.55
5.3.200.0110.03820.55
5.3.190.0110.04320.55
5.3.180.0120.04520.55
5.3.170.0130.04720.55
5.3.160.0120.04620.55
5.3.150.0110.05020.55
5.3.140.0120.04920.54
5.3.130.0110.04620.54
5.3.120.0110.04520.54
5.3.110.0110.04320.54
5.3.100.0110.04420.03
5.3.90.0100.04220.01
5.3.80.0130.03720.00
5.3.70.0090.04020.00
5.3.60.0090.04319.98
5.3.50.0120.04019.93
5.3.40.0090.04319.93
5.3.30.0130.03819.89
5.2.170.0110.03517.11
5.2.160.0090.03717.11
5.2.150.0120.03617.11
5.2.140.0090.03517.10