3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'http://localhost/new-123-rugby/competition.php?croncode=12345678'; $array = explode('/', $string); $array[count($array) - 1] = ''; // empty the last component echo(implode('/', $array)); // join the pieces back
based on 56Mp7

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.0030.01216.82
7.2.00.0030.00919.47
7.1.200.0070.01015.70
7.1.100.0080.00318.22
7.1.70.0050.00316.95
7.1.60.0070.01819.34
7.1.50.0130.01934.76
7.1.00.0030.07722.36
7.0.200.0100.00716.80
7.0.140.0030.07022.17
7.0.60.0130.04719.82
7.0.50.0070.08017.88
7.0.40.0030.09020.24
7.0.30.0230.05020.04
7.0.20.0170.05320.17
7.0.10.0000.04720.06
7.0.00.0130.03320.30
5.6.280.0100.06721.09
5.6.210.0030.04020.44
5.6.200.0030.08018.16
5.6.190.0200.07320.64
5.6.180.0230.06320.41
5.6.170.0300.08020.71
5.6.160.0100.08020.61
5.6.150.0070.07718.21
5.6.140.0070.07018.18
5.6.130.0000.07318.22
5.6.120.0100.08020.91
5.6.110.0170.06721.00
5.6.100.0070.04021.13
5.6.90.0070.08720.95
5.6.80.0100.08020.36
5.5.350.0100.08720.40
5.5.340.0070.08317.88
5.5.330.0100.08320.46
5.5.320.0170.03720.18
5.5.310.0200.04320.14
5.5.300.0100.05718.01
5.5.290.0200.06717.92
5.5.280.0170.04320.64
5.5.270.0100.05020.75
5.5.260.0070.08720.92
5.5.250.0130.04720.68
5.5.240.0270.06720.18
5.4.450.0570.04019.12
5.4.440.0330.06319.46
5.4.430.0130.04019.58
5.4.420.0030.06019.34
5.4.410.0130.05718.93
5.4.400.0170.05718.77
5.4.390.0130.05018.50
5.4.380.0100.05718.47
5.4.370.0200.04718.68
5.4.360.0070.07318.53
5.4.350.0070.04313.88
5.4.340.0100.03313.67
5.4.320.0100.03314.36
5.4.310.0100.03714.13
5.4.300.0070.04014.20
5.4.290.0000.04714.21
5.4.280.0000.04014.09
5.4.270.0000.04314.01
5.4.260.0070.04714.06
5.4.250.0130.03714.16
5.4.240.0130.03014.07
5.4.230.0030.04714.08
5.4.220.0100.04314.02
5.4.210.0130.04714.00
5.4.200.0000.04714.25
5.4.190.0000.05014.04
5.4.180.0030.04314.17
5.4.170.0170.03714.02
5.4.160.0100.04014.17
5.4.150.0070.04014.04
5.4.140.0030.04313.71
5.4.130.0170.03313.68
5.4.120.0170.05713.80
5.4.110.0130.04013.65
5.4.100.0230.03313.71
5.4.90.0100.04013.68
5.4.80.0100.04013.88
5.4.70.0100.04713.63
5.4.60.0100.04013.82
5.4.50.0130.04013.71
5.4.40.0030.04713.68
5.4.30.0200.03313.68
5.4.20.0030.04313.63
5.4.10.0030.04713.68
5.4.00.0130.03713.12
5.3.290.0130.05314.67
5.3.280.0070.04714.63
5.3.270.0030.04714.63
5.3.260.0130.04014.50
5.3.250.0170.03314.59
5.3.240.0070.05014.53
5.3.230.0100.04014.53
5.3.220.0130.03714.43
5.3.210.0130.04014.49
5.3.200.0170.04014.47
5.3.190.0200.04014.41
5.3.180.0230.03714.49
5.3.170.0130.04014.48
5.3.160.0130.04314.48
5.3.150.0300.04314.48
5.3.140.0230.03314.46
5.3.130.0170.04714.44
5.3.120.0270.04014.40
5.3.110.0100.04714.46
5.3.100.0130.03713.90
5.3.90.0070.04014.06
5.3.80.0070.04314.03
5.3.70.0170.03713.92
5.3.60.0200.03013.91
5.3.50.0030.04313.86
5.3.40.0030.04713.94
5.3.30.0070.04013.92
5.3.20.0270.04313.63
5.3.10.0130.05713.52
5.3.00.0270.04713.57
5.2.170.0130.04011.10
5.2.160.0170.02710.99
5.2.150.0070.03311.12
5.2.140.0030.03711.11
5.2.130.0030.03711.00
5.2.120.0100.04311.07
5.2.110.0130.03711.07
5.2.100.0200.03310.95
5.2.90.0170.03711.01
5.2.80.0130.04010.95
5.2.70.0130.02711.07
5.2.60.0070.03311.12
5.2.50.0030.03710.92
5.2.40.0200.03010.97
5.2.30.0270.02710.94
5.2.20.0130.04010.92
5.2.10.0130.03010.80
5.2.00.0030.03710.71
5.1.60.0070.03010.00
5.1.50.0030.0279.95
5.1.40.0130.0209.95
5.1.30.0070.02710.32
5.1.20.0170.02310.27
5.1.10.0130.02010.13
5.1.00.0030.03010.00
5.0.50.0030.0238.50
5.0.40.0000.0238.38
5.0.30.0100.0278.15
5.0.20.0030.0238.20
5.0.10.0100.0208.30
5.0.00.0070.0338.35
4.4.90.0070.0205.88
4.4.80.0030.0175.84
4.4.70.0030.0175.78
4.4.60.0070.0175.80
4.4.50.0000.0205.82
4.4.40.0030.0275.80
4.4.30.0000.0205.80
4.4.20.0000.0235.90
4.4.10.0100.0175.93
4.4.00.0070.0305.86
4.3.110.0030.0205.77
4.3.100.0170.0105.80
4.3.90.0030.0235.81
4.3.80.0000.0375.79
4.3.70.0000.0205.71
4.3.60.0030.0205.75
4.3.50.0030.0175.72
4.3.40.0030.0275.86
4.3.30.0000.0234.61
4.3.20.0030.0204.54
4.3.10.0000.0204.43
4.3.00.0100.01016.68