3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $bla = '500,00'; $price = substr($bla, 0, strpos($bla.'.', '.')); var_dump($price);

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.0090.00619.45
7.1.100.0060.00617.94
7.1.70.0030.01016.84
7.1.60.0130.01019.46
7.1.50.0040.01117.09
7.1.00.0030.07722.41
7.0.200.0030.00616.56
7.0.140.0070.07022.09
7.0.60.0100.03719.77
7.0.50.0030.06017.85
7.0.40.0100.04719.91
7.0.30.0200.03720.09
7.0.20.0270.07020.16
7.0.10.0030.07720.22
7.0.00.0070.07020.00
5.6.280.0000.07721.12
5.6.210.0100.07720.71
5.6.200.0070.03718.16
5.6.190.0070.05020.61
5.6.180.0400.03720.27
5.6.170.0370.07720.33
5.6.160.0070.04720.71
5.6.150.0100.03318.10
5.6.140.0030.04018.15
5.6.130.0070.07018.15
5.6.120.0030.05020.93
5.6.110.0030.04021.10
5.6.100.0100.06020.95
5.6.90.0030.08721.12
5.6.80.0030.04320.37
5.5.350.0170.07020.41
5.5.340.0070.03317.92
5.5.330.0070.06720.07
5.5.320.0330.03720.41
5.5.310.0200.04320.32
5.5.300.0100.03717.98
5.5.290.0200.07017.87
5.5.280.0070.05020.85
5.5.270.0100.08320.88
5.5.260.0100.08020.83
5.5.250.0230.06320.49
5.5.240.0200.08320.11
5.4.450.0700.03719.46
5.4.440.0200.04319.56
5.4.430.0170.04719.41
5.4.420.0170.04319.25
5.4.410.0330.04719.27
5.4.400.0530.03319.22
5.4.390.0330.04719.13
5.4.380.0400.07018.68
5.4.370.0530.04318.48
5.4.360.0300.05018.52
5.4.350.0230.07018.61
5.4.340.0470.05018.64
5.4.320.0100.03312.45
5.4.310.0040.04012.45
5.4.300.0070.03612.45
5.4.290.0040.04012.45
5.4.280.0060.03512.34
5.4.270.0080.04312.34
5.4.260.0070.03612.35
5.4.250.0110.03412.34
5.4.240.0080.03712.35
5.4.230.0080.03612.34
5.4.220.0040.03912.34
5.4.210.0070.03812.34
5.4.200.0030.04312.34
5.4.190.0090.03912.33
5.4.180.0040.03812.34
5.4.170.0070.03512.35
5.4.160.0060.04212.34
5.4.150.0050.03912.34
5.4.140.0070.03712.02
5.4.130.0070.03512.01
5.4.120.0070.03511.96
5.4.110.0090.03311.96
5.4.100.0060.03511.96
5.4.90.0080.03511.96
5.4.80.0060.03711.96
5.4.70.0060.03511.96
5.4.60.0070.03311.96
5.4.50.0060.03511.96
5.4.40.0070.03911.95
5.4.30.0070.03911.95
5.4.20.0070.03511.95
5.4.10.0050.03711.95
5.4.00.0020.04011.43
5.3.290.0060.04012.80
5.3.280.0040.04012.70
5.3.270.0080.03812.73
5.3.260.0070.03912.71
5.3.250.0100.04212.72
5.3.240.0050.03912.72
5.3.230.0050.03912.71
5.3.220.0030.04012.68
5.3.210.0070.03812.68
5.3.200.0110.03212.68
5.3.190.0070.04112.67
5.3.180.0070.03712.67
5.3.170.0070.04212.67
5.3.160.0100.03612.68
5.3.150.0060.04312.68
5.3.140.0090.03912.66
5.3.130.0090.05012.66
5.3.120.0110.04912.66
5.3.110.0110.05012.66
5.3.100.0070.04112.12
5.3.90.0080.05212.09
5.3.80.0050.05112.08
5.3.70.0090.04312.07
5.3.60.0100.04112.06
5.3.50.0120.03412.00
5.3.40.0070.04012.00
5.3.30.0090.03711.94
5.3.20.0060.03511.72
5.3.10.0040.03811.71
5.3.00.0050.04911.68
5.2.170.0070.0299.18
5.2.160.0090.0299.17
5.2.150.0060.0349.18
5.2.140.0050.0399.18
5.2.130.0100.0389.13
5.2.120.0100.0379.13
5.2.110.0070.0399.14
5.2.100.0090.0419.14
5.2.90.0030.0339.13
5.2.80.0070.0299.13
5.2.70.0110.0259.13
5.2.60.0070.0349.09
5.2.50.0050.0339.05
5.2.40.0040.0309.04
5.2.30.0060.0299.01
5.2.20.0080.0269.00
5.2.10.0080.0268.91
5.2.00.0060.0288.77
5.1.60.0040.0248.06
5.1.50.0050.0248.06
5.1.40.0030.0268.04
5.1.30.0040.0358.39
5.1.20.0080.0268.41
5.1.10.0060.0288.14
5.1.00.0050.0288.13
5.0.50.0040.0256.62
5.0.40.0040.0196.48
5.0.30.0060.0396.29
5.0.20.0040.0266.25
5.0.10.0050.0266.23
5.0.00.0050.0306.23
4.4.90.0020.0174.78
4.4.80.0060.0174.76
4.4.70.0030.0174.75
4.4.60.0040.0154.75
4.4.50.0040.0144.77
4.4.40.0050.0294.71
4.4.30.0030.0154.76
4.4.20.0040.0154.84
4.4.10.0010.0174.85
4.4.00.0030.0254.76
4.3.110.0030.0164.67
4.3.100.0030.0174.67
4.3.90.0020.0174.63
4.3.80.0040.0254.58
4.3.70.0050.0124.63
4.3.60.0020.0154.63
4.3.50.0030.0154.63
4.3.40.0030.0244.53
4.3.30.0000.0183.28
4.3.20.0040.0143.26
4.3.10.0000.0183.22
4.3.00.0030.02018.56