3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = '<p>Lorem ipsum dolor sitamet consec tetuer adipiscing elit praesent ves tibulum moles tie lacusenean non ummy hendrer maur hasellus porta usce suscipit varius mi.</p> <p><!-- pagebreak --></p> <p>Lorem ipsum next.</p>'; $string = substr($string, 0, strpos($string, '<!-- pagebreak -->')); var_dump($string);

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.0070.00316.87
7.2.00.0030.00619.11
7.1.200.0000.01015.75
7.1.100.0140.00018.00
7.1.70.0000.00816.95
7.1.60.0000.01017.00
7.1.50.0060.00616.70
7.1.40.0100.01016.61
7.1.30.0090.00916.54
7.1.20.0040.00916.74
7.1.10.0050.00316.63
7.1.00.0040.00416.58
7.0.200.0000.00816.64
7.0.190.0000.00716.55
7.0.180.0000.01416.23
7.0.170.0060.00616.23
7.0.160.0060.00416.23
7.0.150.0030.00516.23
7.0.140.0070.00416.43
7.0.130.0040.00416.53
7.0.120.0000.00716.48
7.0.110.0000.00916.23
7.0.100.0030.00916.36
7.0.90.0070.00016.53
7.0.80.0000.00816.60
7.0.70.0070.00716.36
7.0.60.0040.00416.23
7.0.50.0040.01216.37
7.0.40.0030.00516.23
7.0.30.0040.00416.23
7.0.20.0030.01016.23
7.0.10.0080.00016.23
7.0.00.0000.01116.23
hhvm-3.17.30.0140.105102.49
hhvm-3.15.40.0230.08596.75
hhvm-3.13.20.0240.081109.21
hhvm-3.12.140.0170.088114.05
hhvm-3.11.10.0100.098106.25
hhvm-3.10.10.0240.081103.13
5.6.300.0030.04320.82
5.6.290.0000.05320.86
5.6.280.0060.04221.07
5.6.270.0070.03821.04
5.6.260.0140.03420.81
5.6.250.0030.04520.87
5.6.240.0030.04421.06
5.6.230.0100.03420.85
5.6.220.0070.04020.82
5.6.210.0100.04520.84
5.6.200.0030.05220.97
5.6.190.0000.06220.70
5.6.180.0000.04420.84
5.6.170.0070.03720.99
5.6.160.0070.04620.92
5.6.150.0160.05520.79
5.6.140.0030.05220.98
5.6.130.0070.05620.73
5.6.120.0000.05021.02
5.6.110.0000.04620.98
5.6.100.0070.05420.72
5.6.90.0100.04020.80
5.6.80.0030.03920.38
5.6.70.0070.05620.40
5.6.60.0030.05520.16
5.6.50.0070.07720.34
5.6.40.0030.04420.39
5.6.30.0030.03920.16
5.6.20.0030.04820.33
5.6.10.0000.05920.34
5.6.00.0000.04920.15
5.5.380.0040.04317.50
5.5.370.0030.04417.47
5.5.360.0030.03817.47
5.5.350.0000.04217.56
5.5.340.0030.07817.74
5.5.330.0060.04217.84
5.5.320.0000.04417.86
5.5.310.0070.03617.70
5.5.300.0070.03617.96
5.5.290.0030.04418.01
5.5.280.0000.04418.13
5.5.270.0030.05118.02
5.5.260.0000.04218.03
5.5.250.0070.04417.87
5.5.240.0030.03717.35
5.5.230.0000.04217.12
5.5.220.0070.05217.43
5.5.210.0070.07317.08
5.5.200.0000.04417.10
5.5.190.0000.04317.29
5.5.180.0070.07117.32
5.5.160.0130.04117.41
5.5.150.0000.04217.40
5.5.140.0030.04317.18
5.5.130.0040.03817.41
5.5.120.0030.03817.34
5.5.110.0070.03617.41
5.5.100.0130.04017.24
5.5.90.0030.04417.32
5.5.80.0030.03616.97
5.5.70.0030.04117.30
5.5.60.0000.06217.23
5.5.50.0030.04417.20
5.5.40.0030.03717.27
5.5.30.0030.03817.18
5.5.20.0070.03317.30
5.5.10.0000.04417.27
5.5.00.0000.04117.29
5.4.450.0000.05519.11
5.4.440.0040.03919.42
5.4.430.0030.04519.25
5.4.420.0030.07519.41
5.4.410.0000.04119.20
5.4.400.0070.05319.05
5.4.390.0000.04119.11
5.4.380.0000.04018.85
5.4.370.0030.04818.97
5.4.360.0060.03918.81
5.4.350.0100.05318.93
5.4.340.0130.04919.03
5.4.320.0000.04518.86
5.4.310.0100.04819.00
5.4.300.0030.03718.99
5.4.290.0030.07018.86
5.4.280.0000.06018.98
5.4.270.0030.03919.00
5.4.260.0030.03819.09
5.4.250.0030.03619.01
5.4.240.0030.04519.01
5.4.230.0130.06618.99
5.4.220.0000.04518.80
5.4.210.0170.04718.80
5.4.200.0000.04519.08
5.4.190.0000.04118.77
5.4.180.0030.04018.92
5.4.170.0030.04519.00
5.4.160.0000.04019.04
5.4.150.0000.04119.13
5.4.140.0030.03816.50
5.4.130.0070.03016.33
5.4.120.0260.03916.39
5.4.110.0000.04716.30
5.4.100.0000.03816.59
5.4.90.0000.04316.53
5.4.80.0030.03316.29
5.4.70.0060.03516.44
5.4.60.0060.03216.55
5.4.50.0070.03316.27
5.4.40.0000.03916.34
5.4.30.0030.03516.60
5.4.20.0030.03416.38
5.4.10.0100.03316.42
5.4.00.0100.02916.23
5.3.290.0000.04016.23
5.3.280.0030.04316.23
5.3.270.0030.03716.23
5.3.260.0030.03816.23
5.3.250.0030.03616.23
5.3.240.0070.03416.23
5.3.230.0000.04216.23
5.3.220.0030.03716.23
5.3.210.0000.05216.23
5.3.200.0030.03816.23
5.3.190.0040.03916.23
5.3.180.0040.03916.23
5.3.170.0030.03416.23
5.3.160.0030.03516.23
5.3.150.0000.04016.23
5.3.140.0200.02616.23
5.3.130.0000.04116.23
5.3.120.0000.03916.23
5.3.110.0000.04216.23
5.3.100.0000.04116.23
5.3.90.0000.04016.23
5.3.80.0060.03116.23
5.3.70.0030.03816.23
5.3.60.0000.04116.23
5.3.50.0030.03616.23
5.3.40.0030.03316.23
5.3.30.0030.08016.23
5.3.20.0070.03616.23
5.3.10.0030.03316.23
5.3.00.0030.03316.23
5.2.170.0000.03016.23
5.2.160.0000.03316.23
5.2.150.0000.03016.23
5.2.140.0070.03716.23
5.2.130.0060.03516.23
5.2.120.0070.03216.23
5.2.110.0000.03216.23
5.2.100.0030.02916.23
5.2.90.0000.03116.23
5.2.80.0000.03416.23
5.2.70.0030.03216.23
5.2.60.0000.03616.23
5.2.50.0000.03316.23
5.2.40.0030.02916.23
5.2.30.0030.03816.23
5.2.20.0070.02316.23
5.2.10.0000.02916.23
5.2.00.0030.03016.23
5.1.60.0000.03516.23
5.1.50.0030.02416.23
5.1.40.0030.02316.23
5.1.30.0040.02516.23
5.1.20.0070.02016.23
5.1.10.0000.02816.23
5.1.00.0000.03216.23
5.0.50.0040.01816.23
5.0.40.0030.01816.23
5.0.30.0030.03016.23
5.0.20.0000.03216.23
5.0.10.0000.04716.23
5.0.00.0060.04716.23
4.4.90.0030.01316.23
4.4.80.0060.01216.23
4.4.70.0030.01316.23
4.4.60.0000.02016.23
4.4.50.0030.01316.23
4.4.40.0030.02216.23
4.4.30.0000.01616.23
4.4.20.0070.03616.23
4.4.10.0000.01716.23
4.4.00.0030.03016.23
4.3.110.0000.01616.23
4.3.100.0030.03116.23
4.3.90.0060.03216.23
4.3.80.0000.02916.23
4.3.70.0000.01916.23
4.3.60.0030.01916.23
4.3.50.0000.01916.23
4.3.40.0000.02716.23
4.3.30.0000.01816.23
4.3.20.0000.01916.23
4.3.10.0000.01916.23
4.3.00.0000.01616.23