3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = preg_split("[?]", "['hotels'][3]"); echo var_dump($test);

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.00919.55
7.1.100.0030.01017.82
7.1.70.0070.01117.22
7.1.60.0040.01219.46
7.1.50.0110.01116.63
7.1.00.0000.07722.28
7.0.200.0030.00616.89
7.0.140.0030.07022.12
7.0.60.0070.08019.77
7.0.50.0030.09017.88
7.0.40.0070.06320.40
7.0.30.0370.03720.01
7.0.20.0230.04320.04
7.0.10.0070.07020.18
7.0.00.0030.05720.09
5.6.280.0100.06721.02
5.6.210.0100.07020.50
5.6.200.0130.06018.20
5.6.190.0130.08020.67
5.6.180.0100.06320.33
5.6.170.0300.07720.45
5.6.160.0030.04720.48
5.6.150.0030.04718.18
5.6.140.0030.07018.21
5.6.130.0000.04318.16
5.6.120.0030.04021.11
5.6.110.0100.07020.96
5.6.100.0070.06320.96
5.6.90.0070.08020.96
5.6.80.0030.06720.35
5.5.350.3770.03720.43
5.5.340.0130.07318.02
5.5.330.0130.07020.29
5.5.320.0300.08020.55
5.5.310.0300.07320.32
5.5.300.0100.04317.98
5.5.290.0100.07717.91
5.5.280.0070.04020.76
5.5.270.0100.08020.66
5.5.260.0100.07720.84
5.5.250.0070.04020.70
5.5.240.0070.06720.15
5.4.450.0170.05719.44
5.4.440.0230.05719.47
5.4.430.0200.05719.25
5.4.420.0200.05319.31
5.4.410.0300.04719.14
5.4.400.0270.05318.95
5.4.390.0370.06319.30
5.4.380.0230.06318.70
5.4.370.0370.05018.52
5.4.360.0330.05018.80
5.4.350.0370.05318.78
5.4.340.0370.05018.72
5.4.320.0040.04012.45
5.4.310.0040.04012.45
5.4.300.0060.03912.45
5.4.290.0060.04712.45
5.4.280.0140.04912.34
5.4.270.0080.03712.34
5.4.260.0090.03612.35
5.4.250.0060.03812.35
5.4.240.0110.04112.34
5.4.230.0080.03812.34
5.4.220.0080.05012.34
5.4.210.0060.05212.34
5.4.200.0100.05912.34
5.4.190.0080.04212.34
5.4.180.0060.04712.33
5.4.170.0060.04712.34
5.4.160.0060.03912.34
5.4.150.0110.04012.34
5.4.140.0080.03912.02
5.4.130.0070.04312.01
5.4.120.0080.03611.97
5.4.110.0090.04011.96
5.4.100.0140.04611.96
5.4.90.0090.04211.96
5.4.80.0100.05011.96
5.4.70.0030.06211.96
5.4.60.0060.04811.96
5.4.50.0120.04811.96
5.4.40.0080.05011.95
5.4.30.0080.04711.95
5.4.20.0070.05211.95
5.4.10.0100.04911.95
5.4.00.0100.04411.44
5.3.290.0110.05112.80
5.3.280.0100.04812.71
5.3.270.0080.05812.72
5.3.260.0080.05512.72
5.3.250.0070.05712.72
5.3.240.0060.05612.72
5.3.230.0090.05112.71
5.3.220.0090.05612.68
5.3.210.0120.05012.68
5.3.200.0090.04112.68
5.3.190.0090.04112.68
5.3.180.0090.05212.67
5.3.170.0060.05512.67
5.3.160.0050.04512.68
5.3.150.0110.04412.67
5.3.140.0050.04212.66
5.3.130.0060.04212.66
5.3.120.0100.05412.66
5.3.110.0080.04312.66
5.3.100.0080.03912.12
5.3.90.0100.03512.09
5.3.80.0050.03912.08
5.3.70.0060.03912.07
5.3.60.0120.03912.07
5.3.50.0040.04112.00
5.3.40.0070.04212.00
5.3.30.0020.04111.94
5.3.20.0080.03411.72
5.3.10.0070.04011.69
5.3.00.0050.03811.67
5.2.170.0040.0339.18
5.2.160.0070.0299.18
5.2.150.0030.0359.18
5.2.140.0070.0309.17
5.2.130.0080.0289.13
5.2.120.0090.0419.14
5.2.110.0110.0459.14
5.2.100.0070.0389.14
5.2.90.0080.0409.13
5.2.80.0130.0519.13
5.2.70.0130.0379.13
5.2.60.0060.0449.08
5.2.50.0090.0309.05
5.2.40.0040.0339.03
5.2.30.0060.0329.01
5.2.20.0060.0309.00
5.2.10.0090.0268.92
5.2.00.0050.0318.77
5.1.60.0090.0218.06
5.1.50.0090.0378.05
5.1.40.0100.0278.04
5.1.30.0040.0388.39
5.1.20.0060.0268.41
5.1.10.0060.0298.14
5.1.00.0040.0288.14
5.0.50.0080.0466.61
5.0.40.0080.0246.47
5.0.30.0030.0436.29
5.0.20.0040.0286.25
5.0.10.0050.0236.23
5.0.00.0050.0396.22
4.4.90.0020.0164.77
4.4.80.0040.0174.75
4.4.70.0050.0154.76
4.4.60.0060.0154.76
4.4.50.0040.0224.77
4.4.40.0020.0294.71
4.4.30.0030.0164.75
4.4.20.0040.0184.84
4.4.10.0000.0224.85
4.4.00.0030.0344.76
4.3.110.0040.0174.67
4.3.100.0040.0214.67
4.3.90.0030.0154.64
4.3.80.0040.0304.58
4.3.70.0020.0234.63
4.3.60.0020.0164.63
4.3.50.0030.0234.63
4.3.40.0050.0284.53
4.3.30.0030.0183.28
4.3.20.0110.0423.26
4.3.10.0030.0193.21
4.3.00.0030.0277.31