3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ERROR); $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.40.0040.01219.52
8.3.30.0140.00719.26
8.3.20.0000.00820.73
8.3.10.0080.00021.16
8.3.00.0040.00419.93
8.2.170.0110.00822.96
8.2.160.0070.00720.47
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00422.28
8.2.110.0040.00721.37
8.2.100.0090.00318.37
8.2.90.0000.00819.52
8.2.80.0050.00318.00
8.2.70.0060.00318.13
8.2.60.0030.00518.16
8.2.50.0060.00318.13
8.2.40.0050.00318.53
8.2.30.0000.01019.35
8.2.20.0040.00418.08
8.2.10.0060.00318.35
8.2.00.0060.00318.13
8.1.270.0030.00622.32
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0100.00021.68
8.1.230.0110.00018.08
8.1.220.0000.00817.90
8.1.210.0040.00418.77
8.1.200.0040.00417.47
8.1.190.0040.00417.47
8.1.180.0050.00318.10
8.1.170.0030.00618.86
8.1.160.0000.00822.24
8.1.150.0040.00419.01
8.1.140.0070.00017.80
8.1.130.0000.00718.04
8.1.120.0080.00017.75
8.1.110.0040.00417.83
8.1.100.0000.00717.70
8.1.90.0060.00317.61
8.1.80.0040.00417.77
8.1.70.0040.00417.73
8.1.60.0060.00317.97
8.1.50.0050.00517.80
8.1.40.0040.00417.78
8.1.30.0040.00418.04
8.1.20.0040.00417.91
8.1.10.0000.00917.84
8.1.00.0070.00317.70
8.0.300.0060.00318.77
8.0.290.0040.00417.13
8.0.280.0050.00318.79
8.0.270.0070.00017.58
8.0.260.0070.00017.49
8.0.250.0070.00017.37
8.0.240.0030.00317.33
8.0.230.0070.00017.32
8.0.220.0000.00717.29
8.0.210.0000.00717.38
8.0.200.0000.00717.32
8.0.190.0060.00317.38
8.0.180.0000.00717.31
8.0.170.0080.00017.29
8.0.160.0030.00517.28
8.0.150.0040.00417.22
8.0.140.0040.00417.24
8.0.130.0000.00613.84
8.0.120.0000.00817.44
8.0.110.0040.00417.37
8.0.100.0040.00417.41
8.0.90.0000.00817.36
8.0.80.0070.01117.34
8.0.70.0000.00817.27
8.0.60.0000.00817.29
8.0.50.0000.00717.37
8.0.30.0070.01317.68
8.0.20.0120.01217.57
8.0.10.0040.00417.31
8.0.00.0090.00917.12
7.4.330.0000.00515.42
7.4.320.0000.00716.75
7.4.300.0040.00416.73
7.4.290.0030.00316.82
7.4.280.0020.00716.95
7.4.270.0080.00016.93
7.4.260.0050.00316.93
7.4.250.0030.00517.00
7.4.240.0040.00417.02
7.4.230.0040.00416.84
7.4.220.0120.01416.99
7.4.210.0100.01016.99
7.4.200.0060.00317.09
7.4.160.0130.00417.00
7.4.150.0000.02417.40
7.4.140.0130.00517.86
7.4.130.0090.01017.09
7.4.120.0090.00916.89
7.4.110.0030.01616.97
7.4.100.0090.00916.83
7.4.90.0120.00616.91
7.4.80.0090.01317.08
7.4.70.0140.00416.97
7.4.60.0070.01316.96
7.4.50.0000.01016.80
7.4.40.0150.00616.88
7.4.30.0120.01216.75
7.4.10.0070.01015.08
7.4.00.0040.01515.25
7.3.330.0030.00313.83
7.3.320.0000.00513.66
7.3.310.0030.00516.87
7.3.300.0040.00416.80
7.3.290.0100.00716.71
7.3.280.0070.01016.72
7.3.270.0130.00717.40
7.3.260.0130.01317.03
7.3.250.0110.00716.93
7.3.240.0030.01516.83
7.3.230.0120.00616.86
7.3.210.0060.01316.80
7.3.200.0090.00919.39
7.3.190.0070.01516.89
7.3.180.0110.00716.65
7.3.170.0140.00816.98
7.3.160.0100.00716.86
7.3.130.0070.01015.43
7.3.120.0060.01215.20
7.3.110.0110.00715.45
7.3.100.0060.00915.48
7.3.90.0100.00715.35
7.3.80.0030.00915.19
7.3.70.0070.00715.36
7.3.60.0030.01015.32
7.3.50.0120.00315.38
7.3.40.0080.00414.95
7.3.30.0030.01315.16
7.3.20.0030.01016.87
7.3.10.0000.01716.99
7.3.00.0090.00516.99
7.2.330.0130.00716.94
7.2.320.0030.01616.97
7.2.310.0090.01617.00
7.2.300.0140.01017.27
7.2.290.0040.01516.93
7.2.260.0030.01315.68
7.2.250.0160.00015.25
7.2.240.0100.00315.52
7.2.230.0070.00715.35
7.2.220.0060.00615.43
7.2.210.0030.01015.25
7.2.200.0080.00815.66
7.2.190.0060.01215.46
7.2.180.0060.00915.68
7.2.170.0070.00715.35
7.2.160.0070.01115.75
7.2.150.0130.00317.52
7.2.140.0070.01117.23
7.2.130.0090.00717.49
7.2.120.0050.01317.36
7.2.110.0080.00617.41
7.2.100.0070.00517.43
7.2.90.0050.00717.36
7.2.80.0100.00417.39
7.2.70.0060.00917.38
7.2.60.0050.00717.39
7.2.50.0090.00517.32
7.2.40.0060.00817.46
7.2.30.0000.01117.51
7.2.20.0040.00917.20
7.2.10.0050.00717.47
7.2.00.0040.00818.15
7.1.330.0030.01216.11
7.1.320.0090.00916.40
7.1.310.0120.00315.88
7.1.300.0060.00916.19
7.1.290.0080.00516.17
7.1.280.0070.00716.17
7.1.270.0000.01816.48
7.1.260.0090.00616.05
7.1.250.0050.01116.21
7.1.240.0090.00616.22
7.1.230.0120.00616.42
7.1.220.0030.01016.25
7.1.210.0110.00416.31
7.1.200.0060.00516.19
7.1.190.0040.00416.31
7.1.180.0060.01016.04
7.1.170.0090.00616.12
7.1.160.0100.00716.29
7.1.150.0030.01316.11
7.1.140.0000.01016.30
7.1.130.0100.00315.93
7.1.120.0090.00616.11
7.1.110.0080.00816.30
7.1.100.0080.00817.34
7.1.90.0030.00916.32
7.1.80.0080.00316.25
7.1.70.0060.00617.07
7.1.60.0060.01317.74
7.1.50.0030.01616.82
7.1.40.0030.00916.36
7.1.30.0100.00316.36
7.1.20.0030.00616.29
7.1.10.0000.00916.18
7.1.00.0020.04219.57
7.0.330.0000.01115.96
7.0.320.0100.00315.39
7.0.310.0130.00316.06
7.0.300.0040.01215.66
7.0.290.0030.00715.88
7.0.280.0000.01415.93
7.0.270.0100.00615.88
7.0.260.0000.01115.97
7.0.250.0000.01715.60
7.0.240.0140.00015.98
7.0.230.0060.00615.98
7.0.220.0090.00615.81
7.0.210.0060.00915.96
7.0.200.0090.00316.66
7.0.190.0060.00616.08
7.0.180.0030.01016.05
7.0.170.0000.01415.55
7.0.160.0090.00315.95
7.0.150.0100.00315.89
7.0.140.0020.04419.15
7.0.130.0070.00715.61
7.0.120.0060.00615.66
7.0.110.0060.00615.80
7.0.100.0000.01515.86
7.0.90.0080.00616.00
7.0.80.0060.00616.11
7.0.70.0000.01516.01
7.0.60.0040.04418.01
7.0.50.0130.03717.11
7.0.40.0050.02717.10
7.0.30.0170.03317.08
7.0.20.0150.03317.15
7.0.10.0130.02617.17
7.0.00.0110.04117.22
5.6.400.0030.01614.57
5.6.390.0030.00914.64
5.6.380.0090.00614.34
5.6.370.0060.00614.97
5.6.360.0100.00614.82
5.6.350.0070.00314.87
5.6.340.0040.01114.84
5.6.330.0030.00614.88
5.6.320.0070.00714.51
5.6.310.0000.01514.66
5.6.300.0030.00714.34
5.6.290.0060.00614.77
5.6.280.0030.04117.92
5.6.270.0040.01114.70
5.6.260.0060.00614.90
5.6.250.0090.00014.96
5.6.240.0080.00314.82
5.6.230.0090.00314.84
5.6.220.0000.01314.89
5.6.210.0130.03317.74
5.6.200.0050.04316.71
5.6.190.0030.02717.78
5.6.180.0270.04317.93
5.6.170.0130.04317.81
5.6.160.0090.04217.61
5.6.150.0070.03716.66
5.6.140.0040.03016.64
5.6.130.0090.04616.58
5.6.120.0110.03617.97
5.6.110.0070.02518.15
5.6.100.0200.03217.92
5.6.90.0140.04418.28
5.6.80.0120.03817.70
5.6.70.0030.01014.56
5.6.60.0160.00014.63
5.6.50.0060.00914.57
5.6.40.0090.00314.64
5.6.30.0070.00714.57
5.6.20.0030.01314.91
5.6.10.0000.01114.53
5.6.00.0030.01014.74
5.5.380.0000.01014.79
5.5.370.0080.00414.71
5.5.360.0060.00315.08
5.5.350.0080.02317.66
5.5.340.0100.04116.62
5.5.330.0030.02317.69
5.5.320.0220.03317.66
5.5.310.0150.04217.83
5.5.300.0040.02216.52
5.5.290.0030.02916.61
5.5.280.0130.01817.89
5.5.270.0080.03517.96
5.5.260.0110.04517.90
5.5.250.0080.03718.01
5.5.240.0070.04717.41
5.5.230.0070.01014.66
5.5.220.0150.00014.68
5.5.210.0120.00614.53
5.5.200.0090.00614.57
5.5.190.0080.00414.54
5.5.180.0040.01114.57
5.5.170.0060.00914.64
5.5.160.0070.00714.44
5.5.150.0070.00314.79
5.5.140.0080.00414.40
5.5.130.0030.01214.95
5.5.120.0040.00814.55
5.5.110.0030.01314.80
5.5.100.0080.00414.45
5.5.90.0030.01014.58
5.5.80.0040.00714.73
5.5.70.0070.01014.38
5.5.60.0100.00614.34
5.5.50.0060.00614.63
5.5.40.0030.00514.28
5.5.30.0000.01314.45
5.5.20.0090.00614.60
5.5.10.0070.01114.13
5.5.00.0040.01414.95
5.4.450.0200.03215.76
5.4.440.0670.03015.73
5.4.430.0060.03315.77
5.4.420.0550.02915.46
5.4.410.0400.04215.46
5.4.400.0550.02315.47
5.4.390.0070.02815.32
5.4.380.0120.03515.23
5.4.370.0250.03015.11
5.4.360.0200.02815.11
5.4.350.0150.03715.31
5.4.340.0220.04215.08
5.4.330.0040.00411.25
5.4.320.0040.02211.90
5.4.310.0030.02511.95
5.4.300.0070.02312.14
5.4.290.0040.02512.03
5.4.280.0070.02111.98
5.4.270.0030.02111.89
5.4.260.0050.02011.94
5.4.250.0040.02212.07
5.4.240.0060.02412.10
5.4.230.0040.02511.92
5.4.220.0070.02112.04
5.4.210.0050.02112.05
5.4.200.0040.02212.02
5.4.190.0080.01912.01
5.4.180.0050.02512.10
5.4.170.0090.01711.86
5.4.160.0080.02312.04
5.4.150.0040.02312.00
5.4.140.0030.02411.93
5.4.130.0070.02211.70
5.4.120.0020.02211.90
5.4.110.0090.01911.97
5.4.100.0070.02211.72
5.4.90.0060.02211.73
5.4.80.0040.02911.75
5.4.70.0040.02511.81
5.4.60.0040.02111.71
5.4.50.0050.02011.84
5.4.40.0060.01911.74
5.4.30.0070.02011.67
5.4.20.0050.02311.89
5.4.10.0040.02111.83
5.4.00.0040.02411.56
5.3.290.0070.03912.90
5.3.280.0080.03512.83
5.3.270.0040.04012.84
5.3.260.0060.04612.84
5.3.250.0080.04512.84
5.3.240.0080.03312.84
5.3.230.0020.04012.84
5.3.220.0040.03812.81
5.3.210.0050.04412.80
5.3.200.0070.03512.80
5.3.190.0070.03512.80
5.3.180.0050.03612.80
5.3.170.0100.03412.80
5.3.160.0050.04512.80
5.3.150.0060.04212.80
5.3.140.0070.03412.79
5.3.130.0070.03712.79
5.3.120.0070.03812.78
5.3.110.0060.03912.79
5.3.100.0050.03812.28
5.3.90.0060.03612.26
5.3.80.0070.03612.25
5.3.70.0100.03312.25
5.3.60.0090.03312.23
5.3.50.0070.03612.18
5.3.40.0080.03512.18
5.3.30.0060.03512.14
5.3.20.0040.03711.92
5.3.10.0040.03611.89
5.3.00.0080.03311.88
5.2.170.0050.0309.38
5.2.160.0040.0309.38
5.2.150.0020.0339.38
5.2.140.0060.0299.37
5.2.130.0040.0299.33
5.2.120.0050.0289.33
5.2.110.0050.0319.34
5.2.100.0040.0299.33
5.2.90.0070.0389.34
5.2.80.0050.0349.33
5.2.70.0050.0299.33
5.2.60.0030.0329.29
5.2.50.0040.0309.25
5.2.40.0050.0309.22
5.2.30.0050.0349.20
5.2.20.0020.0329.19
5.2.10.0030.0359.09
5.2.00.0040.0298.95
5.1.60.0040.0248.23
5.1.50.0050.0288.23
5.1.40.0060.0318.21
5.1.30.0030.0278.57
5.1.20.0040.0308.59
5.1.10.0010.0298.31
5.1.00.0070.0238.32
5.0.50.0010.0236.80
5.0.40.0030.0196.66
5.0.30.0040.0306.47
5.0.20.0050.0196.42
5.0.10.0050.0196.40
5.0.00.0050.0316.38
4.4.90.0060.0184.81
4.4.80.0030.0234.80
4.4.70.0030.0174.80
4.4.60.0030.0164.80
4.4.50.0010.0164.79
4.4.40.0010.0274.79
4.4.30.0020.0164.79
4.4.20.0030.0194.84
4.4.10.0020.0154.85
4.4.00.0060.0264.82
4.3.110.0040.0144.72
4.3.100.0030.0224.71
4.3.90.0040.0194.68
4.3.80.0020.0254.67
4.3.70.0020.0164.67
4.3.60.0020.0154.67
4.3.50.0030.0164.66
4.3.40.0030.0254.65
4.3.30.0010.0173.45
4.3.20.0030.0173.43
4.3.10.0010.0173.39
4.3.00.0030.0236.73

preferences:
49 ms | 400 KiB | 5 Q