3v4l.org

run code in 300+ PHP versions simultaneously
<?php print "omg"; $parts = parse_url("http://9999/?@1.2.3.4/btc.txt#lol"); print "meh"; print_r($parts); print "wah"; $hosts = gethostbynamel($parts['host']); print_r($hosts); #echo bin2hex($parts["user"]); print "wtf\n"; print buildUrl($parts); function buildUrl($parts) { $url = ''; $url .= (!empty($parts['scheme'])) ? $parts['scheme'] . '://' : ''; $url .= (!empty($parts['user'])) ? $parts['user'] : ''; $url .= (!empty($parts['pass'])) ? ':' . $parts['pass'] : ''; //If we have a user or pass, make sure to add an "@" $url .= (!empty($parts['user']) || !empty($parts['pass'])) ? '@' : ''; $url .= (!empty($parts['host'])) ? $parts['host'] : ''; $url .= (!empty($parts['port'])) ? ':' . $parts['port'] : ''; $url .= (!empty($parts['path'])) ? $parts['path'] : ''; $url .= (!empty($parts['query'])) ? '?' . $parts['query'] : ''; $url .= (!empty($parts['fragment'])) ? '#' . $parts['fragment'] : ''; return $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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0080.00816.75
8.3.50.0220.00622.06
8.3.40.0120.00619.13
8.3.30.0110.00419.28
8.3.20.0060.00320.46
8.3.10.0080.00023.81
8.3.00.0040.00422.83
8.2.180.0140.00718.26
8.2.170.0090.00622.96
8.2.160.0070.00722.25
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00422.38
8.2.110.0030.00622.23
8.2.100.0040.00817.97
8.2.90.0040.00419.48
8.2.80.0000.00818.29
8.2.70.0040.00417.74
8.2.60.0000.00818.18
8.2.50.0000.00818.07
8.2.40.0000.00818.47
8.2.30.0030.00518.30
8.2.20.0070.00017.77
8.2.10.0000.00717.78
8.2.00.0050.00317.93
8.1.280.0110.00425.92
8.1.270.0060.00323.82
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00024.09
8.1.230.0070.00419.34
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.36
8.1.190.0050.00317.43
8.1.180.0000.00918.10
8.1.170.0050.00318.78
8.1.160.0070.00022.11
8.1.150.0040.00418.80
8.1.140.0040.00417.72
8.1.130.0000.00717.93
8.1.120.0040.00417.60
8.1.110.0040.00417.50
8.1.100.0030.00517.46
8.1.90.0090.00017.63
8.1.80.0030.00317.58
8.1.70.0070.00017.54
8.1.60.0040.00417.79
8.1.50.0000.00817.68
8.1.40.0040.00417.66
8.1.30.0050.00517.71
8.1.20.0040.00417.78
8.1.10.0000.00717.62
8.1.00.0040.00417.61
8.0.300.0000.00818.77
8.0.290.0000.00817.18
8.0.280.0040.00418.59
8.0.270.0000.00717.50
8.0.260.0030.00317.11
8.0.250.0030.00317.18
8.0.240.0000.00817.12
8.0.230.0070.00017.09
8.0.220.0000.00716.98
8.0.210.0060.00317.04
8.0.200.0000.00617.13
8.0.190.0040.00417.16
8.0.180.0040.00417.02
8.0.170.0030.00516.96
8.0.160.0000.00817.00
8.0.150.0040.00417.03
8.0.140.0030.00516.97
8.0.130.0030.00313.60
8.0.120.0000.00716.93
8.0.110.0050.00317.02
8.0.100.0070.00016.82
8.0.90.0000.00717.02
8.0.80.0090.00917.03
8.0.70.0040.00416.94
8.0.60.0050.00317.14
8.0.50.0040.00417.14
8.0.30.0080.01017.12
8.0.20.0040.01517.40
8.0.10.0040.00317.22
8.0.00.0130.00716.81
7.4.330.0050.00015.26
7.4.320.0030.00316.56
7.4.300.0000.00716.78
7.4.290.0040.00716.73
7.4.280.0070.00016.78
7.4.270.0030.00616.77
7.4.260.0040.00416.60
7.4.250.0040.00416.67
7.4.240.0040.00416.68
7.4.230.0000.00716.91
7.4.220.0060.01016.74
7.4.210.0080.00716.71
7.4.200.0030.00316.79
7.4.190.0000.00716.64
7.4.160.0060.01016.46
7.4.150.0120.00617.40
7.4.140.0090.01317.86
7.4.130.0040.01316.69
7.4.120.0100.00716.73
7.4.110.0120.00616.65
7.4.100.0200.00016.45
7.4.90.0120.00616.65
7.4.80.0030.01919.39
7.4.70.0060.01216.51
7.4.60.0110.00516.66
7.4.50.0040.00416.63
7.4.40.0110.00022.77
7.4.30.0090.00916.70
7.4.00.0050.01115.04
7.3.330.0000.00513.27
7.3.320.0050.00013.27
7.3.310.0000.00716.54
7.3.300.0040.00416.51
7.3.290.0060.00916.38
7.3.280.0050.01116.35
7.3.270.0120.01217.40
7.3.260.0060.01216.52
7.3.250.0150.00816.55
7.3.240.0090.00916.45
7.3.230.0060.01616.52
7.3.210.0140.00316.77
7.3.200.0150.00819.39
7.3.190.0100.01316.55
7.3.180.0030.01316.63
7.3.170.0080.00816.39
7.3.160.0040.01216.45
7.3.120.0030.01114.96
7.3.110.0030.01414.93
7.3.100.0030.01414.62
7.3.90.0000.01014.77
7.3.80.0030.01214.81
7.3.70.0070.01015.00
7.3.60.0100.00314.68
7.3.50.0060.00914.71
7.3.40.0000.01314.55
7.3.30.0060.00914.93
7.3.20.0060.00616.78
7.3.10.0000.01416.68
7.3.00.0070.00716.91
7.2.330.0070.01016.81
7.2.320.0070.01116.69
7.2.310.0120.00316.94
7.2.300.0130.00316.55
7.2.290.0030.01416.50
7.2.250.0110.00315.46
7.2.240.0090.00915.45
7.2.230.0030.01015.36
7.2.220.0070.01015.16
7.2.210.0060.00915.39
7.2.200.0030.01215.22
7.2.190.0120.00615.12
7.2.180.0060.00915.18
7.2.170.0060.00315.28
7.2.00.0060.00919.26
7.1.330.0030.01315.59
7.1.320.0060.00315.83
7.1.310.0080.00615.66
7.1.300.0030.01016.11
7.1.290.0130.00316.07
7.1.280.0100.00315.95
7.1.270.0000.00915.91
7.1.260.0030.01016.04
7.1.100.0070.00418.17
7.1.70.0100.00616.82
7.1.60.0090.01619.29
7.1.50.0060.01917.07
7.1.00.0070.07322.43
7.0.200.0100.00616.71
7.0.140.0000.07022.19
7.0.60.0070.04320.13
7.0.50.0170.05318.14
7.0.40.0070.04020.47
7.0.30.0330.07020.20
7.0.20.0200.05020.16
7.0.10.0300.07320.39
7.0.00.0000.04320.29
5.6.280.0070.07021.17
5.6.210.0100.07720.59
5.6.200.0000.08718.19
5.6.190.0070.09320.84
5.6.180.0030.06720.74
5.6.170.0230.08320.61
5.6.160.0100.06020.57
5.6.150.0070.07318.28
5.6.140.0100.07718.20
5.6.130.0070.04018.32
5.6.120.0000.05021.20
5.6.110.0100.06721.23
5.6.100.0170.08021.15
5.6.90.0070.06721.04
5.6.80.0200.07020.44
5.5.350.0070.09320.49
5.5.340.0070.08018.09
5.5.330.0100.07320.34
5.5.320.0030.04020.41
5.5.310.0230.04320.41
5.5.300.0100.06718.04
5.5.290.0000.05318.08
5.5.280.0070.07020.71
5.5.270.0170.06321.01
5.5.260.0030.06720.85
5.5.250.0130.08020.64
5.5.240.0130.05720.21
5.4.450.1130.03019.71
5.4.440.0070.06019.44
5.4.430.0430.06319.64
5.4.420.0770.05319.64
5.4.410.0200.06018.77
5.4.400.0100.07318.96
5.4.390.0070.05718.87
5.4.380.0170.05018.70
5.4.370.0100.05718.75
5.4.360.0200.04718.82
5.4.350.0170.05318.86
5.4.340.0200.05018.85
5.4.320.0080.03312.55
5.4.310.0080.03612.55
5.4.300.0080.03612.55
5.4.290.0060.03712.54
5.4.280.0080.04912.41
5.4.270.0050.03912.41
5.4.260.0050.03812.42
5.4.250.0050.03912.42
5.4.240.0070.03412.42
5.4.230.0030.04712.41
5.4.220.0040.04212.41
5.4.210.0020.04112.41
5.4.200.0050.04112.41
5.4.190.0070.03612.41
5.4.180.0080.04012.40
5.4.170.0130.04512.42
5.4.160.0090.03612.41
5.4.150.0060.04112.41
5.4.140.0060.04112.09
5.4.130.0090.04112.08
5.4.120.0100.04112.04
5.4.110.0030.04112.04
5.4.100.0110.05012.04
5.4.90.0040.04512.03
5.4.80.0060.04912.03
5.4.70.0060.05212.03
5.4.60.0030.04712.03
5.4.50.0110.04512.02
5.4.40.0080.04212.02
5.4.30.0040.03812.01
5.4.20.0050.03812.02
5.4.10.0060.04212.01
5.4.00.0070.05711.51
5.3.290.0090.04412.80
5.3.280.0050.04112.71
5.3.270.0100.03512.72
5.3.260.0080.05112.71
5.3.250.0090.05612.71
5.3.240.0080.05512.72
5.3.230.0100.05412.71
5.3.220.0080.05512.68
5.3.210.0080.05712.68
5.3.200.0070.06612.68
5.3.190.0070.05212.67
5.3.180.0090.03612.68
5.3.170.0060.03712.67
5.3.160.0050.04312.67
5.3.150.0070.04612.68
5.3.140.0060.04012.66
5.3.130.0090.05712.66
5.3.120.0050.06112.66
5.3.110.0130.04712.66
5.3.100.0070.04912.13
5.3.90.0080.05212.12
5.3.80.0070.05612.10
5.3.70.0080.05012.10
5.3.60.0070.04912.09
5.3.50.0050.05212.04
5.3.40.0070.05012.05
5.3.30.0100.04812.00
5.3.20.0100.04711.78
5.3.10.0090.05011.75
5.3.00.0070.05311.73
5.2.170.0100.0429.23
5.2.160.0060.0439.23
5.2.150.0080.0449.23
5.2.140.0050.0449.23
5.2.130.0080.0429.18
5.2.120.0070.0419.19
5.2.110.0100.0519.20
5.2.100.0140.0379.19
5.2.90.0080.0469.19
5.2.80.0060.0489.19
5.2.70.0110.0519.18
5.2.60.0100.0469.14
5.2.50.0050.0429.11
5.2.40.0050.0409.08
5.2.30.0070.0419.06
5.2.20.0050.0419.04
5.2.10.0090.0348.96
5.2.00.0070.0478.82
5.1.60.0040.0378.11
5.1.50.0050.0358.11
5.1.40.0050.0358.08
5.1.30.0070.0358.43
5.1.20.0040.0398.45
5.1.10.0060.0348.18
5.1.00.0070.0388.19
5.0.50.0040.0316.66
5.0.40.0050.0286.52
5.0.30.0080.0426.33
5.0.20.0050.0286.30
5.0.10.0050.0306.29
5.0.00.0060.0426.28
4.4.90.0020.0224.78
4.4.80.0020.0224.76
4.4.70.0040.0174.75
4.4.60.0060.0144.75
4.4.50.0040.0184.77
4.4.40.0010.0314.71
4.4.30.0030.0224.76
4.4.20.0030.0244.84
4.4.10.0020.0244.85
4.4.00.0040.0304.76
4.3.110.0020.0214.67
4.3.100.0060.0204.66
4.3.90.0070.0254.63
4.3.80.0040.0414.59
4.3.70.0050.0244.63
4.3.60.0100.0174.63
4.3.50.0030.0194.63
4.3.40.0020.0354.54
4.3.30.0030.0223.33
4.3.20.0030.0223.32
4.3.10.0050.0203.27
4.3.00.0300.01013.64

preferences:
42.7 ms | 401 KiB | 5 Q