3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = file_get_contents('http://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.0140.00318.68
8.3.50.0110.01122.18
8.3.40.0080.00819.29
8.3.30.0140.00019.46
8.3.20.0030.00520.50
8.3.10.0040.00421.16
8.3.00.0000.00820.05
8.2.180.0110.00417.00
8.2.170.0070.00722.96
8.2.160.0070.00720.47
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0040.00422.37
8.2.110.0060.00322.58
8.2.100.0080.00418.22
8.2.90.0030.00619.52
8.2.80.0030.00618.13
8.2.70.0030.00618.25
8.2.60.0040.00418.18
8.2.50.0000.00818.07
8.2.40.0030.00618.46
8.2.30.0080.00319.45
8.2.20.0000.00818.15
8.2.10.0030.00618.27
8.2.00.0080.00018.07
8.1.280.0180.00325.92
8.1.270.0060.00322.23
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00024.09
8.1.230.0100.00019.35
8.1.220.0090.00017.78
8.1.210.0080.00018.77
8.1.200.0100.00317.25
8.1.190.0060.00317.48
8.1.180.0040.00418.10
8.1.170.0000.00818.89
8.1.160.0040.00422.14
8.1.150.0000.00719.02
8.1.140.0040.00417.79
8.1.130.0050.00318.09
8.1.120.0070.00017.74
8.1.110.0080.00017.71
8.1.100.0040.00417.70
8.1.90.0040.00417.69
8.1.80.0040.00417.70
8.1.70.0000.00717.68
8.1.60.0030.00617.91
8.1.50.0030.00617.79
8.1.40.0000.00817.90
8.1.30.0030.00617.82
8.1.20.0000.00818.02
8.1.10.0040.00417.86
8.1.00.0030.01017.76
8.0.300.0060.00318.77
8.0.290.0030.00617.13
8.0.280.0000.00718.71
8.0.270.0050.00217.37
8.0.260.0030.00317.59
8.0.250.0040.00417.36
8.0.240.0030.00317.31
8.0.230.0000.00717.36
8.0.220.0000.00717.30
8.0.210.0040.00417.25
8.0.200.0000.00717.31
8.0.190.0000.00817.31
8.0.180.0040.00417.45
8.0.170.0000.00817.27
8.0.160.0050.00317.23
8.0.150.0070.00017.13
8.0.140.0000.00817.16
8.0.130.0000.00713.84
8.0.120.0050.00317.24
8.0.110.0030.00517.38
8.0.100.0030.00517.30
8.0.90.0040.00417.36
8.0.80.0070.01817.36
8.0.70.0080.00017.37
8.0.60.0000.00817.31
8.0.50.0060.00317.24
8.0.30.0100.01017.43
8.0.20.0160.00817.42
8.0.10.0040.00417.38
8.0.00.0080.01017.07
7.4.330.0000.00615.37
7.4.320.0030.00316.73
7.4.300.0000.00716.84
7.4.290.0000.00816.93
7.4.280.0040.00416.84
7.4.270.0000.00716.90
7.4.260.0030.00316.92
7.4.250.0000.00816.98
7.4.240.0020.00516.93
7.4.230.0000.00717.13
7.4.220.0160.00717.05
7.4.210.0040.01116.95
7.4.200.0040.00716.85
7.4.160.0120.00916.93
7.4.150.0080.01217.40
7.4.140.0080.01117.86
7.4.130.0120.00517.02
7.4.120.0090.01117.04
7.4.110.0130.00616.84
7.4.100.0100.01016.93
7.4.90.0130.01017.09
7.4.80.0060.01516.98
7.4.70.0030.01416.90
7.4.60.0130.00916.96
7.4.50.0000.00417.01
7.4.40.0100.00717.00
7.4.30.0040.01517.02
7.4.00.0070.01115.24
7.3.330.0050.00013.83
7.3.320.0000.00613.84
7.3.310.0050.00216.71
7.3.300.0030.00316.78
7.3.290.0150.00016.87
7.3.280.0110.00716.75
7.3.270.0150.00417.40
7.3.260.0120.01116.70
7.3.250.0070.01016.78
7.3.240.0060.01216.77
7.3.230.0110.00816.87
7.3.210.0090.00916.69
7.3.200.0110.00719.39
7.3.190.0110.01116.91
7.3.180.0170.00017.11
7.3.170.0090.00916.95
7.3.160.0090.00916.88
7.3.120.0070.01415.00
7.3.110.0060.01315.12
7.3.100.0030.01015.21
7.3.90.0070.00715.57
7.3.80.0030.00715.31
7.3.70.0060.00915.35
7.3.60.0060.00615.14
7.3.50.0090.00615.09
7.3.40.0070.00315.21
7.3.30.0040.01114.93
7.3.20.0060.00917.02
7.3.10.0120.00617.15
7.3.00.0040.01117.16
7.2.330.0150.00417.13
7.2.320.0060.01217.09
7.2.310.0100.01017.07
7.2.300.0170.00717.16
7.2.290.0140.00417.04
7.2.250.0120.00615.45
7.2.240.0090.01215.50
7.2.230.0040.01415.33
7.2.220.0040.00915.51
7.2.210.0060.00815.30
7.2.200.0070.01115.40
7.2.190.0080.00815.67
7.2.180.0100.00615.13
7.2.170.0060.00315.46
7.2.80.0070.00717.02
7.2.60.0040.01117.07
7.2.00.0120.00619.98
7.1.330.0000.01816.44
7.1.320.0000.01516.20
7.1.310.0060.00616.39
7.1.300.0070.01015.96
7.1.290.0030.00616.08
7.1.280.0080.00516.37
7.1.270.0120.00315.85
7.1.260.0100.00616.45
7.1.200.0100.00316.17
7.1.100.0030.00918.23
7.1.70.0040.00717.33
7.1.60.0140.01019.32
7.1.50.0110.01117.43
7.1.00.0030.07722.94
7.0.200.0040.00417.02
7.0.140.0000.07722.51
7.0.60.0030.09020.27
7.0.50.0070.06718.32
7.0.40.0100.08720.61
7.0.30.0030.08720.49
7.0.20.0200.03720.48
7.0.10.0070.07020.52
7.0.00.0070.07020.61
5.6.280.0030.07721.26
5.6.210.0100.04721.18
5.6.200.0130.07318.58
5.6.190.0030.05321.14
5.6.180.0230.05021.09
5.6.170.0230.05720.83
5.6.160.0000.04720.87
5.6.150.0070.08018.48
5.6.140.0200.06718.51
5.6.130.0100.08018.55
5.6.120.0100.06721.42
5.6.110.0300.07321.28
5.6.100.0070.08321.27
5.6.90.0030.09021.51
5.6.80.0000.06720.92
5.5.350.4200.04320.81
5.5.340.0130.07718.54
5.5.330.0170.06020.87
5.5.320.0400.04320.68
5.5.310.0500.07020.63
5.5.300.0100.08018.22
5.5.290.0070.08318.25
5.5.280.0030.09021.00
5.5.270.0230.04321.24
5.5.260.0270.06021.08
5.5.250.0030.07020.87
5.5.240.0170.08020.45
5.4.450.2870.04320.03
5.4.440.2930.04720.09
5.4.430.3070.04020.12
5.4.420.2970.03719.92
5.4.410.2900.04319.84
5.4.400.2700.04319.66
5.4.390.2830.04019.73
5.4.380.3370.04019.66
5.4.370.2930.04719.65
5.4.360.2530.03719.74
5.4.350.2430.03019.71
5.4.340.2900.03719.71
5.4.320.2570.04719.60
5.4.310.2930.04319.60
5.4.300.3130.04319.57
5.4.290.2930.04019.59
5.4.280.2900.03719.79
5.4.270.3170.03719.67
5.4.260.3030.04019.73
5.4.250.3030.04019.67
5.4.240.3030.03019.56
5.4.230.2700.03319.59
5.4.220.2830.04719.68
5.4.210.3000.03319.70
5.4.200.3270.03719.67
5.4.190.2970.04019.58
5.4.180.3000.03719.57
5.4.170.2900.03019.59
5.4.160.2900.04019.53
5.4.150.2730.04019.62
5.4.140.2930.03317.16
5.4.130.2700.03316.89
5.4.120.2930.04017.10
5.4.110.2900.03317.07
5.4.100.2970.03716.93
5.4.90.2900.04317.18
5.4.80.2270.03316.98
5.4.70.2970.03717.08
5.4.60.2670.03317.07
5.4.50.3200.03316.89
5.4.40.2670.03317.02
5.4.30.3030.02717.11
5.4.20.2600.04016.95
5.4.10.2970.03717.00
5.4.00.3000.03016.46
5.3.290.2970.04014.93
5.3.280.3000.04014.88
5.3.270.2700.04015.08
5.3.260.3070.03715.04
5.3.250.2900.03714.89
5.3.240.2730.03315.01
5.3.230.2970.04314.81
5.3.220.2500.04014.96
5.3.210.2970.03714.97
5.3.200.2830.03715.04
5.3.190.2600.04014.86
5.3.180.3000.03314.76
5.3.170.2930.04014.84
5.3.160.3100.04315.01
5.3.150.2970.03714.96
5.3.140.3000.03014.85
5.3.130.2900.04014.89
5.3.120.2770.04014.86
5.3.110.3100.04014.89
5.3.100.2900.03314.55
5.3.90.3100.04314.48
5.3.80.2930.04014.51
5.3.70.3300.03714.48
5.3.60.2930.02714.48
5.3.50.3170.03314.48
5.3.40.3170.03714.48
5.3.30.2970.04014.48
5.3.20.2630.03714.48
5.3.10.3030.05014.48
5.3.00.3030.03314.48
5.2.170.2500.03014.48
5.2.160.2230.03014.48
5.2.150.2470.02014.48
5.2.140.2470.03714.48
5.2.130.2870.02714.48
5.2.120.2470.02714.48
5.2.110.2570.03014.48
5.2.100.2270.02714.48
5.2.90.2470.03714.48
5.2.80.2800.02714.48
5.2.70.2470.03314.48
5.2.60.2370.03314.48
5.2.50.2500.03014.48
5.2.40.1970.02714.48
5.2.30.2000.03014.48
5.2.20.1830.03314.48
5.2.10.1700.03714.48
5.2.00.1930.03014.48
5.1.60.1970.02714.48
5.1.50.1770.02714.48
5.1.40.1800.02314.48
5.1.30.2100.02714.48
5.1.20.1830.02714.48
5.1.10.2130.02714.48
5.1.00.2100.02714.48
5.0.50.1030.02714.48
5.0.40.0930.02014.48
5.0.30.1000.03314.48
5.0.20.1100.02314.48
5.0.10.0900.02014.48
5.0.00.1130.03714.48
4.4.90.1130.02014.48
4.4.80.0900.01714.48
4.4.70.1130.01714.48
4.4.60.1130.02014.48
4.4.50.0900.01314.48
4.4.40.0970.02714.48
4.4.30.0900.01714.48
4.4.20.1070.02014.48
4.4.10.0930.01014.48
4.4.00.1100.02714.48
4.3.110.0900.01314.48
4.3.100.0970.00714.48
4.3.90.0870.01714.48
4.3.80.1030.02314.48
4.3.70.0900.01714.48
4.3.60.1130.02014.48
4.3.50.0930.01714.48
4.3.40.1070.03014.48
4.3.30.0470.02014.48
4.3.20.0700.02014.48
4.3.10.0630.02314.48
4.3.00.0700.02014.48

preferences:
39.56 ms | 401 KiB | 5 Q