3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php preg_match('~(a)*~', str_repeat('a', 10000), $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.0110.00417.09
7.2.00.0030.01219.59
7.1.200.0130.01015.80
7.1.100.0030.01018.54
7.1.70.0000.00817.25
7.1.60.0090.01619.40
7.1.50.0100.01017.27
7.1.00.0030.07022.59
7.0.200.0090.00316.94
7.0.140.0100.06722.09
7.0.120.0070.07022.10
7.0.60.0000.08019.94
7.0.50.0100.04317.83
7.0.40.0030.06020.25
7.0.30.0100.05020.23
7.0.20.0030.05020.29
7.0.10.0130.08020.05
7.0.00.0100.04720.06
5.6.280.0100.07028.96
5.6.210.0130.07028.50
5.6.200.0070.08726.00
5.6.190.0130.08728.30
5.6.180.0400.07328.26
5.6.170.0330.07728.32
5.6.160.0100.09028.29
5.6.150.0070.06326.05
5.6.140.0070.05026.05
5.6.130.0070.04726.13
5.6.120.0070.04329.12
5.6.110.0170.04728.99
5.6.100.0170.07729.01
5.6.90.0100.07029.09
5.6.80.0070.07728.50
5.6.70.4600.03728.34
5.5.350.0300.07728.43
5.5.340.0070.08725.90
5.5.330.0130.08327.94
5.5.320.0330.05728.13
5.5.310.0400.07027.87
5.5.300.0170.07325.85
5.5.290.0100.04725.80
5.5.280.0100.08028.73
5.5.270.0070.06028.73
5.5.260.0100.08328.73
5.5.250.0130.08028.58
5.5.240.2570.02728.34
5.4.450.0100.03727.19
5.4.440.0100.07327.41
5.4.430.0030.05327.30
5.4.420.0170.06327.30
5.4.410.0170.07326.87
5.4.400.0030.04026.98
5.4.390.0070.08027.05
5.4.380.0200.03027.05
5.4.370.0100.07326.70
5.4.360.0170.07326.82
5.4.350.0100.07027.04
5.4.340.0130.07727.07
5.4.320.0070.07326.93
5.4.310.0070.07727.08
5.4.300.0100.04326.70
5.4.290.0070.08026.92
5.4.280.0100.08026.69
5.4.270.0100.07026.89
5.4.260.0100.07727.03
5.4.250.0130.07727.07
5.4.240.0130.06026.99
5.4.230.0030.04326.71
5.4.220.0100.07727.06
5.4.210.0100.04026.88
5.4.200.0070.07726.99
5.4.190.0100.06726.95
5.4.180.0100.08027.04
5.4.170.0100.04326.88
5.4.160.0130.07026.84
5.4.150.0130.07327.03
5.4.140.0170.06024.32
5.4.130.0100.07724.13
5.4.120.0130.06324.13
5.4.110.0170.06724.31
5.4.100.0130.06724.30
5.4.90.0100.06024.29
5.4.80.0100.06324.21
5.4.70.0070.08024.36
5.4.60.0100.06024.36
5.4.50.0100.03324.14
5.4.40.0130.07324.21
5.4.30.0070.04324.17
5.4.20.0070.07724.20
5.4.10.0170.07724.26
5.4.00.0170.04323.55
5.3.290.0100.05022.37
5.3.280.0100.03722.31
5.3.270.0170.04722.32
5.3.260.0100.07322.34
5.3.250.0100.05322.34
5.3.240.0130.04722.25
5.3.230.0070.04722.34
5.3.220.0030.07022.33
5.3.210.0100.07722.28
5.3.200.0170.07022.16
5.3.190.0100.08022.30
5.3.180.0130.06322.34
5.3.170.0070.06322.30
5.3.160.0170.06722.28
5.3.150.0070.04022.34
5.3.140.0070.05722.20
5.3.130.0030.06022.39
5.3.120.0030.05722.38
5.3.110.0070.07022.30
5.3.100.0170.05321.78
5.3.90.0130.06721.61
5.3.80.0030.05021.60
5.3.70.0130.06721.70
5.3.60.0100.07321.67
5.3.50.0070.04721.66
5.3.40.0170.06721.59
5.3.30.0000.04721.55
5.3.20.0070.05721.39
5.3.10.0030.07721.34
5.3.00.0130.06721.32
5.2.170.0070.05718.88
5.2.160.0100.06018.78
5.2.150.0130.06018.82
5.2.140.0070.06318.96
5.2.130.0070.04018.78
5.2.120.0070.05718.75
5.2.110.0100.06018.71
5.2.100.0100.03718.72
5.2.90.0070.06318.90
5.2.80.0070.05018.75
5.2.70.0070.03718.82
5.2.60.0100.04318.62
5.2.50.0100.06318.70
5.2.40.0100.06018.69
5.2.30.0100.02718.68
5.2.20.0100.04718.60
5.2.10.0100.03718.66
5.2.00.0130.02718.41
5.1.60.0070.03317.87
5.1.50.0100.04717.80
5.1.40.0100.05717.66
5.1.30.0070.04718.18
5.1.20.0070.04318.04
5.1.10.0070.06317.83
5.1.00.0130.05317.75
5.0.50.0130.03716.32
5.0.40.0100.04016.21
5.0.30.0070.05015.99
5.0.20.0030.03015.94
5.0.10.0130.02315.91
5.0.00.0100.06016.00
4.4.90.0070.03713.75
4.4.80.0030.04013.66
4.4.70.0100.03313.74
4.4.60.0070.01713.69
4.4.50.0070.01713.71
4.4.40.0070.04713.77
4.4.30.0030.02313.80
4.4.20.0100.01713.80
4.4.10.0030.04313.83
4.4.00.0030.06313.73
4.3.110.0100.02313.73
4.3.100.0070.04313.66
4.3.90.0130.02713.68
4.3.80.0070.04313.66
4.3.70.0030.03013.70
4.3.60.0070.02013.74
4.3.50.0030.02013.64
4.3.40.0070.05313.66
4.3.30.0070.02312.43
4.3.20.0030.04012.20
4.3.10.0100.03312.06
4.3.00.0030.01712.13