3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'CustomErrorLog "/errorlog wtf" hello bvc "jjrr" hello rrgg/x^$46/ "rgggÂŁ"'; preg_match('/(".*")|(\S+)/', $str, $matches); var_dump($matches);
based on 2NBGd

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.0rc40.0210.00498.97
7.3.0rc30.0090.00916.68
7.3.0beta10.0030.00712.81
7.3.0alpha10.0070.00412.42
7.2.60.0100.00316.79
7.2.00.0000.01219.38
7.1.200.0000.01515.61
7.1.100.0060.00918.30
7.1.70.0030.00517.01
7.1.60.0090.01519.32
7.1.50.0070.01716.70
7.1.00.0030.07322.50
7.0.200.0050.00216.57
7.0.140.0030.07322.19
7.0.60.0030.07720.00
7.0.50.0070.07317.91
7.0.40.0170.07719.98
7.0.30.0330.07320.30
7.0.20.0300.06720.31
7.0.10.0100.05720.21
7.0.00.0070.08320.01
5.6.280.0000.07721.09
5.6.210.0030.06720.74
5.6.200.0070.07018.19
5.6.190.0000.04720.41
5.6.180.0200.08020.49
5.6.170.0100.05020.47
5.6.160.0100.07020.71
5.6.150.0100.07718.13
5.6.140.0030.04018.23
5.6.130.0100.08018.06
5.6.120.0070.04320.97
5.6.110.0030.04721.00
5.6.100.0100.04020.99
5.6.90.0100.07321.00
5.6.80.0130.06020.50
5.6.70.4600.03320.36
5.5.350.0300.08020.49
5.5.340.0130.06717.88
5.5.330.0030.04720.43
5.5.320.0230.04320.20
5.5.310.0230.06020.41
5.5.300.0130.07317.89
5.5.290.0070.04317.86
5.5.280.0330.05320.76
5.5.270.0000.09320.67
5.5.260.0000.04720.86
5.5.250.0030.06720.54
5.5.240.0330.05720.06
5.4.450.0970.07019.49
5.4.440.0770.06719.63
5.4.430.0800.06019.23
5.4.420.0800.05019.40
5.4.410.0870.05018.93
5.4.400.0030.06018.92
5.4.390.0900.06719.00
5.4.380.0930.04319.28
5.4.370.0800.07018.99
5.4.360.0870.05718.80
5.4.350.0870.05319.21
5.4.340.0050.03311.97
5.4.320.0050.03612.45
5.4.310.0070.03512.45
5.4.300.0030.03812.45
5.4.290.0040.03912.45
5.4.280.0090.03612.35
5.4.270.0050.03512.34
5.4.260.0060.03612.34
5.4.250.0070.03512.35
5.4.240.0070.03412.35
5.4.230.0040.03812.34
5.4.220.0050.03712.34
5.4.210.0050.03412.34
5.4.200.0050.03712.34
5.4.190.0040.03612.33
5.4.180.0050.03612.33
5.4.170.0080.03312.35
5.4.160.0070.03412.34
5.4.150.0080.03512.34
5.4.140.0070.03512.02
5.4.130.0060.03512.01
5.4.120.0090.03311.96
5.4.110.0060.04111.96
5.4.100.0030.03611.96
5.4.90.0050.03711.96
5.4.80.0060.03711.97
5.4.70.0060.03511.96
5.4.60.0050.03411.96
5.4.50.0040.03611.96
5.4.40.0050.03711.95
5.4.30.0050.03611.95
5.4.20.0060.04211.95
5.4.10.0060.03411.95
5.4.00.0070.03511.44
5.3.290.0070.03812.80
5.3.280.0070.03612.71
5.3.270.0060.03912.73
5.3.260.0060.04012.72
5.3.250.0060.03712.72
5.3.240.0030.03912.72
5.3.230.0050.04612.71
5.3.220.0090.03812.68
5.3.210.0060.03912.68
5.3.200.0070.04512.68
5.3.190.0060.03712.68
5.3.180.0050.03712.67
5.3.170.0110.03912.66
5.3.160.0140.03412.67
5.3.150.0100.03312.67
5.3.140.0030.03912.66
5.3.130.0070.03712.66
5.3.120.0070.04112.66
5.3.110.0080.03712.66
5.3.100.0060.03712.12
5.3.90.0070.04012.09
5.3.80.0080.03412.07
5.3.70.0070.03712.07
5.3.60.0130.03112.06
5.3.50.0060.03612.00
5.3.40.0070.04012.00
5.3.30.0090.03111.96
5.3.20.0080.03311.73
5.3.10.0060.03411.70
5.3.00.0080.03511.68
5.2.170.0040.0329.19
5.2.160.0060.0289.19
5.2.150.0040.0309.19
5.2.140.0050.0299.18
5.2.130.0050.0289.14
5.2.120.0050.0309.14
5.2.110.0080.0359.16
5.2.100.0070.0309.15
5.2.90.0030.0319.15
5.2.80.0050.0339.14
5.2.70.0050.0349.14
5.2.60.0050.0319.10
5.2.50.0070.0339.07
5.2.40.0050.0279.04
5.2.30.0030.0319.02
5.2.20.0070.0309.01
5.2.10.0050.0278.91
5.2.00.0060.0278.77
5.1.60.0050.0238.06
5.1.50.0040.0258.06
5.1.40.0030.0258.04
5.1.30.0030.0268.39
5.1.20.0060.0268.41
5.1.10.0040.0318.14
5.1.00.0040.0268.13
5.0.50.0050.0196.61
5.0.40.0020.0206.47
5.0.30.0020.0336.29
5.0.20.0020.0206.26
5.0.10.0020.0216.23
5.0.00.0050.0296.22
4.4.90.0020.0164.78
4.4.80.0030.0154.75
4.4.70.0030.0154.75
4.4.60.0040.0154.75
4.4.50.0000.0184.77
4.4.40.0030.0254.70
4.4.30.0040.0144.76
4.4.20.0000.0184.84
4.4.10.0030.0154.85
4.4.00.0030.0254.75
4.3.110.0010.0194.67
4.3.100.0030.0174.66
4.3.90.0030.0144.64
4.3.80.0040.0234.59
4.3.70.0060.0134.63
4.3.60.0050.0254.63
4.3.50.0040.0224.63
4.3.40.0020.0264.54
4.3.30.0020.0163.28
4.3.20.0010.0173.25
4.3.10.0010.0203.22
4.3.00.0070.0177.49