3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = 'https://roger.shopery.dev/admin/'; $hostName = 'gros.cat'; $pattern = '~//([a-zA-Z0\.-9]+)([:0-9]+)?/(.*)~U'; var_dump( preg_replace( $pattern, "///$hostName$2/", $url ));

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.00717.00
7.2.00.0070.01019.47
7.1.200.0030.00615.82
7.1.100.0110.00418.23
7.1.70.0100.00617.39
7.1.60.0070.01719.86
7.1.50.0070.01717.13
7.1.00.0000.08022.36
7.0.200.0510.00414.26
7.0.60.0100.08021.69
7.0.50.0070.06717.89
7.0.40.0130.08320.29
7.0.30.0230.07320.19
7.0.20.0270.06020.34
7.0.10.0030.05020.14
7.0.00.0100.06320.18
5.6.280.0000.07720.98
5.6.210.0100.08320.60
5.6.200.0100.08318.19
5.6.190.0070.07320.43
5.6.180.0270.04020.39
5.6.170.0330.08020.71
5.6.160.0100.08720.74
5.6.150.0030.05718.21
5.6.140.0070.08018.21
5.6.130.0070.05018.07
5.6.120.0070.04020.98
5.6.110.0070.06720.97
5.6.100.0070.06720.95
5.6.90.0170.08021.09
5.6.80.0070.03720.41
5.5.350.0200.08020.46
5.5.340.0030.07717.98
5.5.330.0000.05320.25
5.5.320.0270.03320.26
5.5.310.0330.06720.28
5.5.300.0070.03317.88
5.5.290.0100.06017.88
5.5.280.0100.08020.84
5.5.270.0130.07720.86
5.5.260.0130.05720.62
5.5.250.0030.08320.68
5.5.240.0100.03720.24
5.4.450.0370.07319.34
5.4.440.0370.03319.25
5.4.430.0270.04019.52
5.4.420.0230.05019.48
5.4.410.0300.07719.29
5.4.400.0330.06319.17
5.4.390.0330.07319.00
5.4.380.0370.06718.87
5.4.370.0230.03319.16
5.4.360.0230.05018.93
5.4.350.0330.07019.16
5.4.340.0400.05019.01
5.4.320.0370.06319.04
5.4.310.0270.06318.87
5.4.300.0330.06719.23
5.4.290.0430.06019.25
5.4.280.0230.05018.88
5.4.270.0300.03719.20
5.4.260.0430.05719.16
5.4.250.0330.07318.89
5.4.240.0430.06319.07
5.4.230.0370.05018.88
5.4.220.0430.06019.07
5.4.210.0370.06719.16
5.4.200.0530.05719.05
5.4.190.0330.04719.16
5.4.180.0200.04319.03
5.4.170.0300.06319.04
5.4.160.0330.03319.13
5.4.150.0370.06319.13
5.4.140.0200.04316.29
5.4.130.0330.04316.27
5.4.120.0300.07016.13
5.4.110.0300.04716.57
5.4.100.0600.03316.38
5.4.90.0300.06316.46
5.4.80.0300.04016.35
5.4.70.0330.03316.37
5.4.60.0400.04316.32
5.4.50.0400.06016.47
5.4.40.0330.03316.10
5.4.30.0300.04016.13
5.4.20.0400.06316.43
5.4.10.0300.07716.13
5.4.00.0330.03015.83
5.3.290.0300.05014.54
5.3.280.0330.04314.47
5.3.270.0270.04314.53
5.3.260.0270.05314.39
5.3.250.0400.06314.54
5.3.240.0430.05714.39
5.3.230.0270.04314.52
5.3.220.0400.06314.50
5.3.210.0370.06014.46
5.3.200.0300.03714.49
5.3.190.0430.06714.50
5.3.180.0300.04314.48
5.3.170.0230.04314.49
5.3.160.0300.04314.35
5.3.150.0270.03714.53
5.3.140.0300.04014.37
5.3.130.0400.05014.48
5.3.120.0470.03714.47
5.3.110.0300.04714.46
5.3.100.0300.06714.00
5.3.90.0270.03713.97
5.3.80.0330.03013.86
5.3.70.0430.05713.98
5.3.60.0330.04313.94
5.3.50.0400.06013.93
5.3.40.0270.04013.87
5.3.30.0300.05313.82
5.3.20.0400.04313.49
5.3.10.0270.06313.60
5.3.00.0300.07013.49
5.2.170.0200.03311.09
5.2.160.0300.04311.15
5.2.150.0300.06011.30
5.2.140.0270.03310.96
5.2.130.0300.04711.03
5.2.120.0330.05711.09
5.2.110.0300.05011.03
5.2.100.0300.05311.03
5.2.90.0330.05011.07
5.2.80.0200.03711.08
5.2.70.0200.03011.08
5.2.60.0170.03311.00
5.2.50.0170.03710.90
5.2.40.0370.04310.94
5.2.30.0130.05310.95
5.2.20.0130.03010.97
5.2.10.0170.02710.90
5.2.00.0170.02710.74
5.1.60.0100.0279.89
5.1.50.0170.02310.07
5.1.40.0130.0279.94
5.1.30.0170.04310.32
5.1.20.0230.03010.36
5.1.10.0130.02710.04
5.1.00.0200.02010.12
5.0.50.0070.0238.54
5.0.40.0100.0438.46
5.0.30.0130.0638.39
5.0.20.0100.0178.19
5.0.10.0100.0308.32
5.0.00.0170.0278.29
4.4.90.0070.0177.88
4.4.80.0100.0237.88
4.4.70.0100.0137.88
4.4.60.0100.0177.88
4.4.50.0070.0177.88
4.4.40.0100.0237.88
4.4.30.0030.0177.88
4.4.20.0200.0137.88
4.4.10.0070.0177.88
4.4.00.0070.0277.88
4.3.110.0100.0277.88
4.3.100.0100.0237.88
4.3.90.0170.0337.88
4.3.80.0130.0477.88
4.3.70.0130.0137.88
4.3.60.0200.0077.88
4.3.50.0200.0107.88
4.3.40.0100.0337.88
4.3.30.0070.0177.88
4.3.20.0070.0177.88
4.3.10.0070.0337.88
4.3.00.0030.0207.88