3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = file_get_contents('https://www.youtube.com/watch?v=u7R4kdCi1zY'); preg_match('/ytplayer.config = {(.*?)};/',$data,$match); $o = json_decode('{'.$match[1].'}') ; $links = explode(',',$o -> args -> url_encoded_fmt_stream_map); $numbers = array(17, 22, 36); foreach($numbers as $number) { foreach($links as $link) { parse_str($link,$r); if ($r['itag'] == $number) echo '<a href="'.$r['url'].'">quality: '.$r['itag'].'</a><br />'; } }

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.0070.01018.55
8.3.50.0130.00822.10
8.3.40.0100.00718.72
8.3.30.0090.00919.16
8.3.20.0080.00020.25
8.3.10.0000.00820.82
8.3.00.0040.00419.68
8.2.180.0100.01019.04
8.2.170.0060.01222.96
8.2.160.0070.00720.52
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0030.00526.16
8.2.120.0000.00821.12
8.2.110.0030.00620.53
8.2.100.0060.00618.22
8.2.90.0030.00919.11
8.2.80.0030.00517.97
8.2.70.0040.00417.88
8.2.60.0000.00818.05
8.2.50.0060.00318.07
8.2.40.0000.00918.22
8.2.30.0000.00919.15
8.2.20.0000.00817.89
8.2.10.0050.00318.15
8.2.00.0040.00417.94
8.1.280.0130.00625.92
8.1.270.0090.00022.05
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.83
8.1.230.0040.00819.16
8.1.220.0040.00417.79
8.1.210.0030.00518.77
8.1.200.0090.00317.35
8.1.190.0060.00317.35
8.1.180.0000.00818.10
8.1.170.0040.00418.62
8.1.160.0000.00821.95
8.1.150.0000.00718.83
8.1.140.0070.00017.64
8.1.130.0000.00717.95
8.1.120.0040.00417.67
8.1.110.0000.00717.60
8.1.100.0000.00717.60
8.1.90.0070.00017.43
8.1.80.0000.00717.47
8.1.70.0000.00717.50
8.1.60.0030.00617.80
8.1.50.0000.00917.70
8.1.40.0030.00517.72
8.1.30.0090.00017.78
8.1.20.0040.00417.68
8.1.10.0040.00417.61
8.1.00.0000.01117.66
8.0.300.0000.00818.77
8.0.290.0000.00716.88
8.0.280.0030.00318.52
8.0.270.0030.00317.28
8.0.260.0000.00717.32
8.0.250.0030.00317.21
8.0.240.0030.00517.20
8.0.230.0070.00017.26
8.0.220.0030.00317.06
8.0.210.0000.00717.14
8.0.200.0040.00417.24
8.0.190.0040.00417.11
8.0.180.0050.00317.22
8.0.170.0050.00317.15
8.0.160.0040.00417.13
8.0.150.0000.00817.07
8.0.140.0050.00317.08
8.0.130.0060.00013.52
8.0.120.0050.00217.18
8.0.110.0030.00517.13
8.0.100.0000.00717.05
8.0.90.0040.00417.06
8.0.80.0120.00917.22
8.0.70.0000.00717.20
8.0.60.0000.00817.03
8.0.50.0050.00217.21
8.0.30.0100.01917.31
8.0.20.0110.00817.47
8.0.10.0000.00817.21
8.0.00.0100.00817.02
7.4.330.0000.00515.12
7.4.320.0000.00816.72
7.4.300.0060.00016.72
7.4.290.0070.00016.80
7.4.280.0000.00716.70
7.4.270.0000.00716.61
7.4.260.0050.00316.81
7.4.250.0000.00916.79
7.4.240.0030.00316.82
7.4.230.0070.00016.63
7.4.220.0100.00616.75
7.4.210.0060.00916.61
7.4.200.0030.00916.66
7.4.160.0130.01016.74
7.4.150.0060.01217.40
7.4.140.0130.00517.86
7.4.130.0100.00716.73
7.4.120.0120.00716.64
7.4.110.0000.01816.97
7.4.100.0140.00516.95
7.4.90.0090.00916.75
7.4.80.0120.01216.70
7.4.70.0130.00416.79
7.4.60.0050.01116.65
7.4.50.0080.00016.67
7.4.40.0160.00716.88
7.4.30.0090.01516.88
7.4.00.0070.00714.93
7.3.330.0000.00513.41
7.3.320.0000.00513.33
7.3.310.0000.00716.59
7.3.300.0070.00016.52
7.3.290.0070.00716.60
7.3.280.0070.01116.55
7.3.270.0070.01017.40
7.3.260.0140.00916.55
7.3.250.0080.00816.63
7.3.240.0090.00916.71
7.3.230.0160.00316.54
7.3.210.0070.01016.69
7.3.200.0070.01119.39
7.3.190.0070.01516.50
7.3.180.0060.01116.85
7.3.170.0080.00816.59
7.3.160.0130.00316.60
7.2.330.0110.00916.64
7.2.320.0140.00416.76
7.2.310.0070.01116.81
7.2.300.0130.01016.81
7.2.290.0110.00616.84
7.2.80.0050.00516.80
7.2.60.0060.00916.96
7.2.00.0070.00320.01
7.1.200.0070.00316.00
7.1.70.0030.00717.83
7.1.60.0080.00417.83
7.1.50.0070.01417.18
7.1.00.0070.07322.65
7.0.200.0040.01317.05
7.0.140.0170.06322.49
7.0.60.0070.04020.26
7.0.50.0070.07018.19
7.0.40.0170.03320.59
7.0.30.0270.08020.53
7.0.20.0270.08020.49
7.0.10.0070.04720.52
7.0.00.0070.07020.49
5.6.280.0070.07321.34
5.6.210.0130.07321.08
5.6.200.0000.05018.58
5.6.190.0030.04321.01
5.6.180.0530.06721.07
5.6.170.0230.08320.87
5.6.160.0000.09020.88
5.6.150.0100.07718.66
5.6.140.0100.05718.52
5.6.130.0130.06718.50
5.6.120.0100.06721.35
5.6.110.0170.07721.33
5.6.100.0130.08021.47
5.6.90.0100.07721.48
5.6.80.0070.08320.77
5.5.350.0070.03720.85
5.5.340.0070.04718.27
5.5.330.0000.05020.89
5.5.320.0400.07320.67
5.5.310.0330.07020.58
5.5.300.0000.04318.24
5.5.290.0170.04718.28
5.5.280.0030.04021.29
5.5.270.0130.08321.22
5.5.260.0100.08321.05
5.5.250.0030.05720.97
5.5.240.0100.08320.69
5.4.450.0200.05019.64
5.4.440.0030.06319.85
5.4.430.0970.05719.83
5.4.420.0700.06019.67
5.4.410.1000.04719.68
5.4.400.1130.05019.32
5.4.390.0730.05319.48
5.4.380.0270.06018.69
5.4.370.0330.05718.93
5.4.360.0400.05318.82
5.4.350.0400.04719.03
5.4.340.0430.07018.65
5.4.320.0070.03312.47
5.4.310.0050.04412.46
5.4.300.0060.03512.47
5.4.290.0060.04212.46
5.4.280.0050.03412.36
5.4.270.0050.03512.36
5.4.260.0040.03712.36
5.4.250.0040.03712.36
5.4.240.0080.04012.36
5.4.230.0030.03912.36
5.4.220.0070.03312.35
5.4.210.0050.04512.36
5.4.200.0040.04512.35
5.4.190.0090.03712.35
5.4.180.0050.03512.35
5.4.170.0080.03312.36
5.4.160.0070.03512.36
5.4.150.0080.03612.35
5.4.140.0060.03612.04
5.4.130.0040.03712.02
5.4.120.0080.04111.98
5.4.110.0030.04211.98
5.4.100.0070.03211.98
5.4.90.0040.03811.98
5.4.80.0070.03611.98
5.4.70.0060.03211.97
5.4.60.0020.03711.98
5.4.50.0050.03411.98
5.4.40.0050.03411.96
5.4.30.0070.03711.96
5.4.20.0050.03411.96
5.4.10.0050.04111.96
5.4.00.0040.03711.45
5.3.290.0020.04212.80
5.3.280.0050.04212.71
5.3.270.0050.04812.72
5.3.260.0050.04112.71
5.3.250.0090.03412.72
5.3.240.0050.03712.72
5.3.230.0090.03412.71
5.3.220.0050.03612.68
5.3.210.0040.04012.68
5.3.200.0040.03812.68
5.3.190.0040.03912.68
5.3.180.0060.03612.67
5.3.170.0060.03512.67
5.3.160.0070.03712.67
5.3.150.0030.03912.68
5.3.140.0040.03812.66
5.3.130.0060.03812.66
5.3.120.0050.04012.66
5.3.110.0060.03812.66
5.3.100.0050.04212.12
5.3.90.0060.03612.09
5.3.80.0050.03712.07
5.3.70.0050.03712.08
5.3.60.0110.03512.07
5.3.50.0050.03712.01
5.3.40.0040.03712.01
5.3.30.0060.03411.96
5.3.20.0050.03511.74
5.3.10.0080.03311.71
5.3.00.0040.03711.70
5.2.170.0020.0339.20
5.2.160.0060.0289.20
5.2.150.0060.0299.20
5.2.140.0070.0289.20
5.2.130.0030.0309.15
5.2.120.0050.0279.15
5.2.110.0030.0299.16
5.2.100.0090.0259.16
5.2.90.0070.0269.16
5.2.80.0040.0309.15
5.2.70.0080.0339.16
5.2.60.0020.0329.11
5.2.50.0040.0309.08
5.2.40.0030.0309.06
5.2.30.0030.0319.03
5.2.20.0050.0289.02
5.2.10.0040.0328.93
5.2.00.0080.0318.79
5.1.60.0000.0288.08
5.1.50.0060.0278.07
5.1.40.0040.0238.06
5.1.30.0020.0278.40
5.1.20.0020.0278.43
5.1.10.0040.0248.15
5.1.00.0050.0338.15
5.0.50.0060.0236.64
5.0.40.0040.0206.50
5.0.30.0040.0366.31
5.0.20.0050.0196.28
5.0.10.0040.0186.26
5.0.00.0020.0316.25
4.4.90.0010.0164.78
4.4.80.0030.0224.75
4.4.70.0050.0184.76
4.4.60.0020.0154.76
4.4.50.0010.0164.77
4.4.40.0030.0254.71
4.4.30.0020.0164.75
4.4.20.0020.0224.84
4.4.10.0010.0164.85
4.4.00.0030.0314.76
4.3.110.0030.0144.67
4.3.100.0040.0194.66
4.3.90.0020.0154.64
4.3.80.0040.0224.59
4.3.70.0030.0144.63
4.3.60.0020.0144.63
4.3.50.0030.0204.63
4.3.40.0030.0244.54
4.3.30.0000.0253.30
4.3.20.0010.0163.29
4.3.10.0040.0143.24
4.3.00.0100.0276.73

preferences:
53.5 ms | 401 KiB | 5 Q