3v4l.org

run code in 300+ PHP versions simultaneously
<?php class URL { /** * Wrapper for parse_url() * * @param string $string * @return URL * @throws InvalidArgumentException */ public static function createFromString($string) {} /** * Resolve $target as a relative URL against $source, using the same rules as a browser, so for example * * $source = http://google.com/ $target = /foo result = http://google.com/foo * $source = http://google.com/foo $target = bar result = http://google.com/bar * $source = http://google.com/foo $target = http://google.com/baz result = http://google.com/baz * * @param string|URL $source * @param string|URL $target * @return URL */ public static function resolve($source, $target) {} /** * Constructor takes components as individual arguments * * @param string $scheme * @param string $user * @param string $pass * @param string $host * @param int $port * @param string $path * @param string|array $query * @param string $fragment */ public function __construct($scheme = null, $user = null, $pass = null, $host = null, $port = null, $path = null, $query = null, $fragment = null) {} /** * Forms all non-null components into a URL * * @return string */ public function __toString() {} // +setters/getters for all components (or public properties, I'd prefer methods though) }

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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.70.0090.01216.63
8.3.60.0140.00518.43
8.3.50.0120.00816.32
8.3.40.0110.00318.70
8.3.30.0120.00318.41
8.3.20.0040.00418.48
8.3.10.0080.00020.36
8.3.00.0060.00317.38
8.2.180.0120.00317.86
8.2.170.0040.01122.96
8.2.160.0100.00722.15
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00819.64
8.2.110.0060.00320.94
8.2.100.0000.01217.66
8.2.90.0050.00319.09
8.2.80.0040.00417.97
8.2.70.0080.00017.38
8.2.60.0060.00317.92
8.2.50.0000.00818.07
8.2.40.0070.00018.22
8.2.30.0050.00518.16
8.2.20.0000.00717.68
8.2.10.0040.00417.71
8.2.00.0030.00617.63
8.1.280.0190.00325.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0040.00422.53
8.1.230.0030.00920.95
8.1.220.0040.00418.77
8.1.210.0000.00918.91
8.1.200.0060.00317.23
8.1.190.0000.00817.40
8.1.180.0030.00618.10
8.1.170.0040.00418.64
8.1.160.0050.00318.79
8.1.150.0000.00718.60
8.1.140.0070.00017.37
8.1.130.0030.00317.70
8.1.120.0040.00417.32
8.1.110.0020.00517.41
8.1.100.0000.00717.30
8.1.90.0000.00717.40
8.1.80.0050.00217.45
8.1.70.0050.00217.30
8.1.60.0070.00317.55
8.1.50.0000.00717.49
8.1.40.0030.00517.42
8.1.30.0030.00617.50
8.1.20.0050.00217.59
8.1.10.0000.00717.43
8.1.00.0050.00317.36
8.0.300.0000.00819.90
8.0.290.0040.00416.75
8.0.280.0000.00718.42
8.0.270.0000.00717.16
8.0.260.0050.00318.48
8.0.250.0040.00416.82
8.0.240.0040.00416.86
8.0.230.0000.00716.91
8.0.220.0000.00716.72
8.0.210.0030.00316.75
8.0.200.0000.00616.84
8.0.190.0070.00016.92
8.0.180.0050.00316.79
8.0.170.0090.00016.79
8.0.160.0000.00716.86
8.0.150.0000.00816.83
8.0.140.0090.00316.81
8.0.130.0030.00313.29
8.0.120.0070.00016.70
8.0.110.0040.00416.76
8.0.100.0000.00716.91
8.0.90.0070.00016.67
8.0.80.0070.01016.78
8.0.70.0050.00316.63
8.0.60.0040.00416.87
8.0.50.0040.00416.69
8.0.30.0170.00216.88
8.0.20.0070.01117.19
8.0.10.0000.00817.04
8.0.00.0120.00816.70
7.4.330.0030.00313.43
7.4.320.0000.00716.50
7.4.300.0030.00316.40
7.4.290.0040.00416.50
7.4.280.0030.00516.40
7.4.270.0030.00316.47
7.4.260.0030.00313.28
7.4.250.0040.00416.46
7.4.240.0050.00216.49
7.4.230.0070.00016.32
7.4.220.0060.01416.41
7.4.210.0070.00816.44
7.4.200.0030.00316.47
7.4.190.0000.00716.39
7.4.160.0040.01116.14
7.4.150.0100.01317.18
7.4.140.0140.00717.06
7.4.130.0090.00816.27
7.4.120.0150.00216.49
7.4.110.0030.01516.48
7.4.100.0100.01016.41
7.4.90.0100.00716.54
7.4.80.0120.01218.80
7.4.70.0070.01016.62
7.4.60.0070.01016.43
7.4.50.0030.00516.28
7.4.40.0040.01122.27
7.4.30.0060.00916.20
7.4.00.0090.00614.89
7.3.330.0000.00613.27
7.3.320.0060.00012.98
7.3.310.0040.00416.29
7.3.300.0000.00716.20
7.3.290.0100.00316.18
7.3.280.0100.00616.15
7.3.270.0080.00817.18
7.3.260.0130.00818.24
7.3.250.0130.00716.44
7.3.240.0060.00916.24
7.3.230.0100.00716.39
7.3.210.0090.00916.31
7.3.200.0130.00319.39
7.3.190.0160.00616.41
7.3.180.0060.00916.07
7.3.170.0060.01616.41
7.3.160.0150.00016.14
7.3.120.0100.00714.73
7.2.330.0090.01216.29
7.2.320.0060.01016.58
7.2.310.0180.00616.32
7.2.300.0070.01016.27
7.2.290.0130.00316.30
7.2.80.0060.00316.47
7.2.60.0030.01016.78
7.2.00.0060.00919.33
7.1.200.0000.01215.62
7.1.100.0030.00917.73
7.1.70.0120.00016.99
7.1.60.0100.01419.40
7.1.50.0090.01316.57
7.1.00.0070.05722.43
7.0.200.0000.00816.59
7.0.140.0000.07722.05
7.0.60.0100.05719.93
7.0.50.0070.06717.89
7.0.40.0070.04317.82
7.0.30.0100.04317.71
7.0.20.0000.05317.72
7.0.10.0000.04717.75
7.0.00.0030.05317.92
5.6.280.0100.06720.82
5.6.210.0030.08720.68
5.6.200.0030.05018.19
5.6.190.0070.08718.18
5.6.180.0100.05718.18
5.6.170.0030.04718.18
5.6.160.0030.04018.28
5.6.150.0030.04318.15
5.6.140.0030.04018.13
5.6.130.0100.03718.15
5.6.120.0070.03718.16
5.6.110.0070.03718.28
5.6.100.0000.04318.26
5.6.90.0070.03718.20
5.6.80.0030.03717.57
5.6.70.0070.03317.57
5.6.60.0030.03717.60
5.6.50.0030.03717.53
5.6.40.0100.03717.50
5.6.30.0030.03717.65
5.6.20.0030.03717.63
5.6.10.0030.03717.60
5.6.00.0030.03717.59
5.5.350.0300.07320.39
5.5.340.0030.04017.95
5.5.330.0030.08717.99
5.5.320.0130.07318.03
5.5.310.0070.03718.01
5.5.300.0000.04018.08
5.5.290.0000.04317.92
5.5.280.0000.04318.08
5.5.270.0000.04317.98
5.5.260.0000.04317.95
5.5.250.0030.03717.79
5.5.240.0000.04017.30
5.5.230.0030.03717.36
5.5.220.0000.04017.32
5.5.210.0100.03017.45
5.5.200.0000.04017.33
5.5.190.0070.03317.33
5.5.180.0030.03717.30
5.5.160.0030.03717.40
5.5.150.0000.08017.34
5.5.140.0070.06017.43
5.5.130.0000.04317.33
5.5.120.0070.07717.31
5.5.110.0100.07317.28
5.5.100.0030.07317.24
5.5.90.0100.04717.20
5.5.80.0030.04717.20
5.5.70.0070.06017.25
5.5.60.0030.06317.32
5.5.50.0030.04317.23
5.5.40.0130.07017.16
5.5.30.0030.05017.23
5.5.20.0100.04017.18
5.5.10.0070.04317.20
5.5.00.0130.05717.32
5.4.450.0030.03719.34
5.4.440.0000.04319.36
5.4.430.0030.04019.35
5.4.420.0070.03719.38
5.4.410.0030.03719.28
5.4.400.0030.03719.29
5.4.390.0030.03718.95
5.4.380.0070.03319.01
5.4.370.0070.03319.12
5.4.360.0030.03719.09
5.4.350.0070.03319.10
5.4.340.0070.03319.01
5.4.320.0070.04719.01
5.4.310.0030.05318.89
5.4.300.0030.06018.88
5.4.290.0100.07319.09
5.4.280.0030.04719.03
5.4.270.0100.07719.26
5.4.260.0000.08019.03
5.4.250.0000.05318.95
5.4.240.0000.04319.28
5.4.230.0070.07718.98
5.4.220.0070.06719.11
5.4.210.0100.07019.11
5.4.200.0000.08019.01
5.4.190.0070.08319.02
5.4.180.0030.05019.02
5.4.170.0130.05318.94
5.4.160.0000.05019.04
5.4.150.0070.08019.01
5.4.140.0030.07316.39
5.4.130.0000.04316.45
5.4.120.0030.06316.38
5.4.110.0030.04016.36
5.4.100.0100.06016.38
5.4.90.0070.07716.35
5.4.80.0130.07016.39
5.4.70.0370.01316.36
5.4.60.0100.06716.46
5.4.50.0070.03316.40
5.4.40.0030.04316.62
5.4.30.0070.03716.34
5.4.20.0070.03316.56
5.4.10.0030.03716.39
5.4.00.0000.07315.68
5.3.290.0130.05014.63
5.3.280.0030.08314.59
5.3.270.0170.06714.46
5.3.260.0030.04014.63
5.3.250.0000.04314.62
5.3.240.0030.05314.65
5.3.230.0100.07714.63
5.3.220.0070.04014.56
5.3.210.0070.04014.42
5.3.200.0070.05314.62
5.3.190.0000.06014.64
5.3.180.0000.04314.59
5.3.170.0030.08014.61
5.3.160.0070.07714.42
5.3.150.0000.05014.59
5.3.140.0100.05714.55
5.3.130.0100.06014.56
5.3.120.0100.07014.59
5.3.110.0070.03714.57
5.3.100.0130.06314.06
5.3.90.0070.06014.05
5.3.80.0070.04714.06
5.3.70.0100.07014.01
5.3.60.0100.04714.01
5.3.50.0030.04314.02
5.3.40.0070.07713.79
5.3.30.0070.06013.95
5.3.20.0030.05713.71
5.3.10.0100.06713.67
5.3.00.0030.03713.84
5.2.170.0130.05711.14
5.2.160.0070.06011.20
5.2.150.0100.05711.22
5.2.140.0070.04011.18
5.2.130.0070.06011.16
5.2.120.0100.05011.14
5.2.110.0000.03311.20
5.2.100.0030.04711.15
5.2.90.0170.02711.15
5.2.80.0100.05011.13
5.2.70.0030.05011.08
5.2.60.0070.03311.12
5.2.50.0070.06010.92
5.2.40.0030.06311.01
5.2.30.0100.04711.01
5.2.20.0100.05710.98
5.2.10.0070.05310.72
5.2.00.0030.06310.77
5.1.60.0030.05710.05
5.1.50.0130.04710.21
5.1.40.0030.0479.90
5.1.30.0070.05710.36
5.1.20.0070.05310.39
5.1.10.0100.05310.05
5.1.00.0070.05710.07
5.0.50.0000.0238.63
5.0.40.0000.0238.49
5.0.30.0100.0578.07
5.0.20.0030.0478.19
5.0.10.0070.0438.17
5.0.00.0000.0378.20
4.4.90.0000.0337.73
4.4.80.0070.0237.73
4.4.70.0000.0207.73
4.4.60.0070.0307.73
4.4.50.0000.0407.73
4.4.40.0000.0507.73
4.4.30.0000.0407.73
4.4.20.0000.0377.73
4.4.10.0000.0207.73
4.4.00.0000.0277.73
4.3.110.0000.0177.73
4.3.100.0030.0337.73
4.3.90.0030.0337.73
4.3.80.0030.0507.73
4.3.70.0070.0307.73
4.3.60.0070.0307.73
4.3.50.0030.0277.73
4.3.40.0030.0407.73
4.3.30.0000.0337.73
4.3.20.0030.0207.73
4.3.10.0000.0337.73
4.3.00.0030.0237.73

preferences:
69.35 ms | 401 KiB | 5 Q