3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php preg_match("/^PHP$/", "APHP", $matches); echo $matches[0]; // 1234 ?>

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.00.0030.01019.70
7.1.100.0030.00718.09
7.1.70.0000.01117.26
7.1.60.0080.00419.70
7.1.50.0130.01716.99
7.1.00.0000.07722.52
7.0.200.0050.00216.65
7.0.140.0030.07021.95
7.0.60.0070.03719.93
7.0.50.0030.04717.68
7.0.40.0170.07720.21
7.0.30.0270.08320.21
7.0.20.0100.05720.01
7.0.10.0030.04320.11
7.0.00.0030.05720.34
5.6.210.0100.08020.59
5.6.200.0100.04718.15
5.6.190.0100.04020.57
5.6.180.0370.07720.56
5.6.170.0230.08020.33
5.6.160.0000.04320.61
5.6.150.0170.03718.18
5.6.140.0100.04718.11
5.6.130.0030.08318.07
5.6.120.0230.06721.17
5.6.110.0030.08320.99
5.6.100.0030.04021.06
5.6.90.0100.07720.96
5.6.80.0070.07720.32
5.5.350.4200.03020.46
5.5.340.0100.07717.92
5.5.330.0070.06320.20
5.5.320.0230.03720.13
5.5.310.0130.04320.29
5.5.300.0100.05717.93
5.5.290.0130.07717.92
5.5.280.0070.04020.96
5.5.270.0030.08320.78
5.5.260.0100.08020.64
5.5.250.0000.04320.60
5.5.240.0030.08320.06
5.4.450.0470.04019.39
5.4.440.0070.05719.46
5.4.430.0470.05019.42
5.4.420.0300.04019.23
5.4.410.0530.03319.00
5.4.400.0530.04318.89
5.4.390.0400.04018.81
5.4.380.1070.05318.62
5.4.370.1000.05018.71
5.4.360.1070.05018.69
5.4.350.1200.04718.68
5.4.340.0900.04718.57
5.4.320.0050.03712.45
5.4.310.0080.04912.45
5.4.300.0100.04812.45
5.4.290.0100.05512.45
5.4.280.0060.05512.35
5.4.270.0050.03912.35
5.4.260.0060.04912.34
5.4.250.0080.03512.35
5.4.240.0040.03812.34
5.4.230.0080.03512.34
5.4.220.0040.03812.34
5.4.210.0080.03412.34
5.4.200.0060.03812.34
5.4.190.0070.03612.33
5.4.180.0050.03712.34
5.4.170.0060.03612.34
5.4.160.0050.04812.34
5.4.150.0040.03812.34
5.4.140.0030.04012.02
5.4.130.0080.03312.01
5.4.120.0020.03911.97
5.4.110.0020.03911.96
5.4.100.0080.03311.96
5.4.90.0040.03911.96
5.4.80.0100.03811.96
5.4.70.0070.03311.96
5.4.60.0070.03511.96
5.4.50.0060.03411.96
5.4.40.0060.03311.95
5.4.30.0050.03811.95
5.4.20.0050.03711.95
5.4.10.0070.03311.95
5.4.00.0040.03911.44
5.3.290.0070.03912.80
5.3.280.0060.03712.71
5.3.270.0060.03912.73
5.3.260.0060.04012.72
5.3.250.0030.04012.72
5.3.240.0050.03912.72
5.3.230.0060.03812.70
5.3.220.0100.03912.68
5.3.210.0090.04712.68
5.3.200.0070.04612.68
5.3.190.0080.04012.68
5.3.180.0050.04012.68
5.3.170.0060.03812.67
5.3.160.0060.04012.67
5.3.150.0040.04112.67
5.3.140.0090.03512.66
5.3.130.0070.03912.66
5.3.120.0060.04912.66
5.3.110.0070.04012.65
5.3.100.0050.03912.11
5.3.90.0090.03212.08
5.3.80.0050.03712.08
5.3.70.0050.03712.07
5.3.60.0060.03712.07
5.3.50.0050.03712.00
5.3.40.0070.03612.00
5.3.30.0090.03211.95
5.3.20.0080.03311.73
5.3.10.0050.03811.70
5.3.00.0030.03811.68
5.2.170.0070.0289.19
5.2.160.0040.0299.19
5.2.150.0040.0319.19
5.2.140.0070.0289.19
5.2.130.0020.0329.15
5.2.120.0060.0279.15
5.2.110.0050.0289.15
5.2.100.0030.0319.15
5.2.90.0040.0309.15
5.2.80.0040.0319.15
5.2.70.0070.0289.14
5.2.60.0070.0389.09
5.2.50.0030.0329.06
5.2.40.0010.0339.04
5.2.30.0070.0289.02
5.2.20.0040.0339.01
5.2.10.0050.0288.91
5.2.00.0060.0288.78
5.1.60.0030.0268.06
5.1.50.0040.0258.05
5.1.40.0020.0268.04
5.1.30.0070.0248.39
5.1.20.0050.0268.41
5.1.10.0040.0268.13
5.1.00.0040.0268.14
5.0.50.0050.0206.62
5.0.40.0050.0186.47
5.0.30.0050.0306.29
5.0.20.0040.0196.25
5.0.10.0060.0186.23
5.0.00.0040.0306.23
4.4.90.0050.0134.78
4.4.80.0020.0154.75
4.4.70.0000.0174.76
4.4.60.0050.0124.75
4.4.50.0020.0164.77
4.4.40.0030.0264.71
4.4.30.0030.0164.76
4.4.20.0020.0194.85
4.4.10.0050.0214.85
4.4.00.0050.0244.76
4.3.110.0030.0164.67
4.3.100.0020.0154.66
4.3.90.0010.0164.63
4.3.80.0030.0274.58
4.3.70.0030.0234.63
4.3.60.0050.0254.63
4.3.50.0080.0194.63
4.3.40.0090.0294.53
4.3.30.0020.0173.28
4.3.20.0020.0173.25
4.3.10.0020.0163.22
4.3.00.0070.01318.64