3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 'http://example.com/path/to/somewhere?param1=x&param2=http://another.example.com/path/to/another/example/'; var_dump(parse_url($x)); $y = 'path/to/somewhere?param1=x&param2=http://another.example.com/path/to/another/example/'; var_dump(parse_url($y));

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.1rc20.0000.00716.91
8.1rc10.0000.00716.83
8.0.100.0070.00016.67
8.0.90.0030.00516.69
8.0.80.0060.00916.84
8.0.70.0040.00416.76
8.0.60.0040.00416.81
8.0.50.0050.00416.87
8.0.30.0120.00617.03
8.0.20.0100.00917.40
8.0.10.0080.00016.91
8.0.00.0070.01116.58
7.4.230.0040.00416.59
7.4.220.0090.01216.39
7.4.210.0090.00716.53
7.4.200.0030.00316.53
7.4.190.0000.00716.32
7.4.160.0130.00316.40
7.4.150.0090.01017.40
7.4.140.0100.01217.86
7.4.130.0120.00716.41
7.4.120.0110.00816.34
7.4.110.0100.00716.30
7.4.100.0110.00716.39
7.4.90.0070.01016.34
7.4.80.0070.01019.39
7.4.70.0000.01716.45
7.4.60.0100.00616.13
7.4.50.0050.00316.30
7.4.40.0090.00622.77
7.4.30.0060.01016.44
7.4.00.0050.01014.67
7.3.300.0030.00316.11
7.3.290.0100.00316.16
7.3.280.0120.00516.11
7.3.270.0120.00617.40
7.3.260.0080.00816.19
7.3.250.0100.00816.35
7.3.240.0040.01216.36
7.3.230.0110.00716.46
7.3.210.0100.00716.43
7.3.200.0170.00019.39
7.3.190.0080.01116.57
7.3.180.0110.01116.39
7.3.170.0060.01516.27
7.3.160.0060.01016.11
7.3.120.0070.01014.68
7.3.110.0060.01014.67
7.3.100.0030.01314.86
7.3.90.0090.00914.82
7.3.80.0110.00714.77
7.3.70.0070.00714.52
7.3.60.0100.00714.54
7.3.50.0000.01314.61
7.3.40.0030.00714.60
7.3.30.0180.00014.64
7.3.20.0120.00616.19
7.3.10.0090.00616.24
7.3.00.0110.00216.53
7.2.330.0110.00716.54
7.2.320.0000.01716.25
7.2.310.0120.00616.50
7.2.300.0030.01416.19
7.2.290.0160.00016.43
7.2.250.0030.01314.72
7.2.240.0040.01514.89
7.2.230.0030.01014.68
7.2.220.0000.01114.97
7.2.210.0030.01314.69
7.2.200.0030.01314.70
7.2.190.0120.00614.70
7.2.180.0070.00714.71
7.2.170.0090.00614.87
7.2.130.0000.01316.51
7.2.120.0070.01016.47
7.2.110.0060.00916.45
7.2.100.0050.00516.50
7.2.90.0180.00016.18
7.2.80.0030.01016.18
7.2.70.0000.01316.40
7.2.60.0110.00616.33
7.2.50.0000.01416.38
7.2.40.0000.01416.61
7.2.30.0060.00316.43
7.2.20.0110.00716.63
7.2.10.0060.00916.67
7.2.00.0030.00917.96
7.1.330.0040.01115.59
7.1.320.0120.00615.86
7.1.310.0090.00615.56
7.1.300.0080.00815.55
7.1.290.0080.00415.50
7.1.280.0060.00615.72
7.1.270.0070.01115.73
7.1.260.0060.00815.63
7.1.250.0000.01715.52
7.1.200.0070.00715.79
7.1.100.0090.00918.04
7.1.70.0030.00617.04
7.1.60.0100.01319.82
7.1.50.0110.01116.91
7.1.00.0000.08022.45
7.0.200.0030.00716.82
7.0.140.0030.07022.00
7.0.100.0100.06019.97
7.0.90.0130.03719.96
7.0.80.0030.08019.85
7.0.70.0300.06019.91
7.0.60.0030.06319.96
7.0.50.0270.07020.31
7.0.40.0100.04320.03
7.0.30.0100.04720.05
7.0.20.0070.05319.98
7.0.10.0030.06720.11
7.0.00.0130.05720.06
5.6.280.0030.07321.07
5.6.250.0070.04720.59
5.6.240.0130.06720.66
5.6.230.0030.05020.71
5.6.220.0130.07020.57
5.6.210.0130.07720.45
5.6.200.0070.06320.93
5.6.190.0100.06721.04
5.6.180.0030.06721.09
5.6.170.0070.08721.00
5.6.160.0070.07320.95
5.6.150.0070.06021.04
5.6.140.0030.08020.91
5.6.130.0070.05321.01
5.6.120.0030.05021.01
5.6.110.0100.05321.00
5.6.100.0000.07721.00
5.6.90.0030.06020.93
5.6.80.0100.04020.46
5.6.70.0100.04320.43
5.6.60.0170.07020.38
5.6.50.0130.07020.39
5.6.40.0200.03320.41
5.6.30.0100.07320.29
5.6.20.0000.04320.43
5.6.10.0070.06020.29
5.6.00.0070.06720.41
5.5.380.0100.04320.34
5.5.370.0170.06020.50
5.5.360.0000.05320.33
5.5.350.0030.05020.42
5.5.340.0070.04720.83
5.5.330.0030.07020.79
5.5.320.0030.05720.82
5.5.310.0100.06720.90
5.5.300.0100.06720.77
5.5.290.0100.07720.92
5.5.280.0070.07720.87
5.5.270.0070.04020.91
5.5.260.0030.06720.85
5.5.250.0130.05020.69
5.5.240.0030.07720.23
5.5.230.0030.07320.10
5.5.220.0030.07020.24
5.5.210.0100.06320.25
5.5.200.0000.07320.17
5.5.190.0070.04320.22
5.5.180.0000.08320.11
5.5.160.0070.05320.27
5.5.150.0100.05720.11
5.5.140.0030.07320.13
5.5.130.0030.06020.07
5.5.120.0100.06320.17
5.5.110.0130.03720.22
5.5.100.0030.04320.07
5.5.90.0100.06320.05
5.5.80.0100.06320.08
5.5.70.0070.04320.13
5.5.60.0070.06319.99
5.5.50.0030.04020.01
5.5.40.0100.04020.07
5.5.30.0070.07320.12
5.5.20.0100.04720.02
5.5.10.0070.04719.97
5.5.00.0130.05720.04
5.4.450.0200.07019.11
5.4.440.0030.07719.35
5.4.430.0070.04019.26
5.4.420.0100.06319.44
5.4.410.0000.08019.25
5.4.400.0100.04719.03
5.4.390.0200.05019.03
5.4.380.0130.06019.05
5.4.370.0100.06319.09
5.4.360.0100.03319.07
5.4.350.0070.04019.13
5.4.340.0030.07719.09
5.4.320.0030.04719.07
5.4.310.0130.07019.02
5.4.300.0070.04018.81
5.4.290.0070.04319.02
5.4.280.0070.06019.18
5.4.270.0170.05718.78
5.4.260.0070.05319.11
5.4.250.0030.05019.08
5.4.240.0030.07719.11
5.4.230.0030.07319.11
5.4.220.0030.07018.97
5.4.210.0000.05018.96
5.4.200.0070.06019.11
5.4.190.0030.04319.19
5.4.180.0100.05019.03
5.4.170.0000.08719.10
5.4.160.0130.07019.03
5.4.150.0030.09019.07
5.4.140.0100.06016.36
5.4.130.0200.02716.38
5.4.120.0100.06716.35
5.4.110.0030.03716.43
5.4.100.0130.03716.43
5.4.90.0070.05016.21
5.4.80.0070.04016.29
5.4.70.0100.05316.31
5.4.60.0000.07716.18
5.4.50.0030.04316.35
5.4.40.0030.03716.45
5.4.30.0030.03716.40
5.4.20.0070.07016.40
5.4.10.0030.04316.29
5.4.00.0070.03715.51
5.3.290.0070.04314.54
5.3.280.0030.04714.45
5.3.270.0100.06314.57
5.3.260.0070.08014.51
5.3.250.0070.04014.55
5.3.240.0130.03314.61
5.3.230.0070.07014.57
5.3.220.0070.07014.50
5.3.210.0030.07714.55
5.3.200.0030.05014.57
5.3.190.0070.07014.57
5.3.180.0030.03714.39
5.3.170.0030.05714.42
5.3.160.0100.03314.55
5.3.150.0070.07014.52
5.3.140.0030.07014.56
5.3.130.0070.06714.50
5.3.120.0070.06314.53
5.3.110.0030.04014.54
5.3.100.0070.03713.89
5.3.90.0100.03714.01
5.3.80.0100.06313.96
5.3.70.0000.05014.01
5.3.60.0070.07313.86
5.3.50.0100.06313.90
5.3.40.0070.04713.93
5.3.30.0100.04713.77
5.3.20.0030.03313.63
5.3.10.0100.05713.65
5.3.00.0070.03013.63
5.2.170.0070.03711.06
5.2.160.0070.02311.16
5.2.150.0070.03010.93
5.2.140.0030.06011.09
5.2.130.0030.06711.12
5.2.120.0030.02711.05
5.2.110.0070.02311.09
5.2.100.0030.02711.08
5.2.90.0030.03311.09
5.2.80.0000.06310.94
5.2.70.0000.06711.07
5.2.60.0030.06311.00
5.2.50.0100.05710.87
5.2.40.0030.04010.82
5.2.30.0070.05711.04
5.2.20.0070.02010.88
5.2.10.0100.05010.83
5.2.00.0070.05010.73
5.1.60.0070.0509.87
5.1.50.0130.02310.02
5.1.40.0100.05010.03
5.1.30.0030.03310.36
5.1.20.0030.06010.25
5.1.10.0030.05710.11
5.1.00.0000.03310.05
5.0.50.0030.0308.62
5.0.40.0000.0478.39
5.0.30.0030.0708.28
5.0.20.0030.0308.28
5.0.10.0030.0338.28
5.0.00.0030.0308.28
4.4.90.0030.0138.28
4.4.80.0030.0278.28
4.4.70.0030.0138.28
4.4.60.0000.0378.28
4.4.50.0000.0378.28
4.4.40.0000.0578.28
4.4.30.0070.0338.28
4.4.20.0000.0308.28
4.4.10.0000.0308.28
4.4.00.0100.0478.28
4.3.110.0070.0308.28
4.3.100.0030.0338.28
4.3.90.0000.0378.28
4.3.80.0000.0578.28
4.3.70.0070.0308.28
4.3.60.0070.0308.28
4.3.50.0070.0308.28
4.3.40.0070.0438.28
4.3.30.0070.0308.28
4.3.20.0100.0178.28
4.3.10.0030.0178.28
4.3.00.0070.0308.28

preferences:
14.46 ms | 454 KiB | 5 Q