3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ERROR); $data = file_get_contents('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); foreach($links as $link) { parse_str($link,$r); 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.0100.01018.68
8.3.50.0120.00622.09
8.3.40.0190.00319.04
8.3.30.0060.00819.08
8.3.20.0080.00020.20
8.3.10.0060.00320.68
8.3.00.0080.00019.57
8.2.180.0100.00717.00
8.2.170.0120.00622.96
8.2.160.0040.01119.21
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00626.16
8.2.120.0050.00322.21
8.2.110.0060.00321.04
8.2.100.0060.00618.12
8.2.90.0060.00318.14
8.2.80.0000.00817.97
8.2.70.0050.00317.75
8.2.60.0030.00618.05
8.2.50.0090.00018.07
8.2.40.0000.00718.33
8.2.30.0080.00019.35
8.2.20.0040.00418.00
8.2.10.0030.00718.22
8.2.00.0040.00417.87
8.1.280.0070.01425.92
8.1.270.0040.00422.11
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0040.00422.61
8.1.230.0060.00620.98
8.1.220.0030.00517.74
8.1.210.0060.00319.05
8.1.200.0070.00317.35
8.1.190.0080.00017.25
8.1.180.0060.00318.10
8.1.170.0000.00918.70
8.1.160.0000.00722.07
8.1.150.0000.00718.88
8.1.140.0040.00417.57
8.1.130.0050.00217.83
8.1.120.0040.00417.63
8.1.110.0000.00917.54
8.1.100.0050.00217.55
8.1.90.0040.00417.69
8.1.80.0030.00617.52
8.1.70.0030.00317.61
8.1.60.0060.00317.64
8.1.50.0060.00317.66
8.1.40.0040.00417.57
8.1.30.0050.00317.82
8.1.20.0040.00417.83
8.1.10.0000.00717.68
8.1.00.0000.00817.62
8.0.300.0030.00620.19
8.0.290.0000.00817.00
8.0.280.0020.00518.45
8.0.270.0080.00017.37
8.0.260.0070.00017.38
8.0.250.0030.00317.30
8.0.240.0070.00017.26
8.0.230.0000.00717.23
8.0.220.0000.00717.20
8.0.210.0000.00717.23
8.0.200.0080.00017.22
8.0.190.0000.00917.14
8.0.180.0000.00717.24
8.0.170.0020.00517.13
8.0.160.0030.00417.07
8.0.150.0000.00717.07
8.0.140.0030.00517.00
8.0.130.0030.00313.58
8.0.120.0040.00417.15
8.0.110.0000.00717.18
8.0.100.0000.00717.20
8.0.90.0050.00217.01
8.0.80.0060.00917.16
8.0.70.0070.00017.30
8.0.60.0000.00717.07
8.0.50.0020.00517.30
8.0.30.0150.00817.44
8.0.20.0080.01017.51
8.0.10.0040.00417.34
8.0.00.0090.01317.26
7.4.330.0060.00015.00
7.4.320.0000.00716.80
7.4.300.0000.00616.84
7.4.290.0050.00316.84
7.4.280.0040.00416.72
7.4.270.0000.00816.65
7.4.260.0030.00316.80
7.4.250.0000.01016.85
7.4.240.0000.00716.67
7.4.230.0000.00716.74
7.4.220.0060.01316.94
7.4.210.0120.00916.91
7.4.200.0040.00416.94
7.4.160.0120.00416.66
7.4.150.0060.01217.40
7.4.140.0050.01217.86
7.4.130.0090.01216.79
7.4.120.0110.00616.77
7.4.110.0120.01216.76
7.4.100.0070.01016.64
7.4.90.0090.00916.78
7.4.80.0160.00616.68
7.4.70.0100.00716.84
7.4.60.0060.01116.82
7.4.50.0000.00816.46
7.4.40.0140.01116.77
7.4.30.0150.01216.68
7.4.00.0090.00615.43
7.3.330.0050.00013.32
7.3.320.0050.00013.49
7.3.310.0040.00416.65
7.3.300.0030.00316.54
7.3.290.0030.01016.52
7.3.280.0090.00716.59
7.3.270.0160.00317.40
7.3.260.0100.00816.61
7.3.250.0070.01016.63
7.3.240.0060.01216.59
7.3.230.0070.01116.82
7.3.210.0100.00716.67
7.3.200.0120.00919.39
7.3.190.0030.01316.72
7.3.180.0090.00616.86
7.3.170.0070.01016.60
7.3.160.0030.01216.61
7.2.330.0160.00917.00
7.2.320.0110.00716.89
7.2.310.0140.00316.82
7.2.300.0060.01216.92
7.2.290.0150.00316.96
7.2.00.0070.01019.54
7.1.200.0040.00816.19
7.1.100.0000.00818.44
7.1.70.0030.00317.29
7.1.60.0040.00719.32
7.1.50.0070.01616.89
7.1.00.0030.07322.33
7.0.200.0000.00916.77
7.0.140.0070.07022.01
7.0.110.0070.08020.05
7.0.100.0130.07719.99
7.0.90.0130.08020.06
7.0.80.0100.07719.94
7.0.70.0130.07719.95
7.0.60.0070.04720.00
7.0.50.0130.07720.04
7.0.40.0070.08019.60
7.0.30.0130.07719.79
7.0.20.0070.08019.65
7.0.10.0100.07719.83
7.0.00.0170.06719.86
5.6.280.0100.06720.78
5.6.260.0070.08020.74
5.6.250.0000.08720.62
5.6.240.0170.07320.55
5.6.230.0070.08320.54
5.6.220.0200.06320.84
5.6.210.0100.08020.80
5.6.200.0100.06720.56
5.6.190.0170.06720.55
5.6.180.0100.07720.56
5.6.170.0030.05020.65
5.6.160.0100.07320.70
5.6.150.0070.08320.55
5.6.140.0100.08020.55
5.6.130.0070.07020.63
5.6.120.0070.07320.61
5.6.110.0100.08020.56
5.6.100.0030.08020.54
5.6.90.0030.08320.68
5.6.80.0070.08020.09
5.6.70.0100.07320.05
5.6.60.0070.07719.95
5.6.50.0030.08319.96
5.6.40.0100.07719.82
5.6.30.0070.04320.01
5.6.20.0070.03719.93
5.6.10.0100.03320.00
5.6.00.0070.04020.00
5.5.380.0100.07320.53
5.5.370.0230.06720.25
5.5.360.0170.06320.31
5.5.350.0030.08020.41
5.5.340.0030.08020.90
5.5.330.0130.07020.71
5.5.320.0170.07320.78
5.5.310.0100.07320.70
5.5.300.0070.07720.78
5.5.290.0100.08320.70
5.5.280.0130.05320.84
5.5.270.0030.08321.01
5.5.260.0070.07020.88
5.5.250.0030.09020.83
5.5.240.0100.07020.27
5.5.230.0070.06320.08
5.5.220.0070.04320.15
5.5.210.0100.07020.28
5.5.200.0130.07020.25
5.5.190.0000.04320.38
5.5.180.0030.04020.31
5.5.160.0070.03720.16
5.5.150.0070.04020.09
5.5.140.0100.03020.25
5.5.130.0030.04020.22
5.5.120.0000.04020.21
5.5.110.0000.06720.36
5.5.100.0100.03320.15
5.5.90.0070.05720.27
5.5.80.0030.05719.98
5.5.70.0070.04720.01
5.5.60.0030.05020.16
5.5.50.0030.03720.15
5.5.40.0030.07020.12
5.5.30.0070.06320.16
5.5.20.0030.03720.23
5.5.10.0070.06720.03
5.5.00.0000.04020.14
5.4.450.0030.06019.50
5.4.440.0030.08719.57
5.4.430.0030.07319.34
5.4.420.0100.06719.50
5.4.410.0030.08019.45
5.4.400.0070.08019.18
5.4.390.0030.05719.08
5.4.380.0200.05019.25
5.4.370.0070.07319.18
5.4.360.0000.09018.98
5.4.350.0070.03719.08
5.4.340.0070.04319.03
5.4.320.0100.05319.27
5.4.310.0070.03319.03
5.4.300.0070.03319.00
5.4.290.0000.04019.13
5.4.280.0100.03719.00
5.4.270.0100.03319.16
5.4.260.0130.06018.95
5.4.250.0070.03318.95
5.4.240.0030.07018.95
5.4.230.0100.07019.24
5.4.220.0030.07719.26
5.4.210.0030.07318.92
5.4.200.0000.03719.11
5.4.190.0070.03019.11
5.4.180.0000.05719.15
5.4.170.0100.03319.02
5.4.160.0070.03719.08
5.4.150.0000.04319.00
5.4.140.0030.03716.18
5.4.130.0030.03716.40
5.4.120.0000.03716.16
5.4.110.0000.04316.19
5.4.100.0000.04016.53
5.4.90.0070.03316.18
5.4.80.0100.05016.27
5.4.70.0000.03716.39
5.4.60.0000.03716.11
5.4.50.0030.07016.46
5.4.40.0070.03316.35
5.4.30.0070.05716.46
5.4.20.0030.06316.34
5.4.10.0000.03716.49
5.4.00.0070.03015.84
5.3.290.0000.04014.56
5.3.280.0130.07014.52
5.3.270.0000.04314.48
5.3.260.0000.04314.45
5.3.250.0100.06014.55
5.3.240.0100.03014.71
5.3.230.0070.03014.61
5.3.220.0000.04014.51
5.3.210.0070.03714.51
5.3.200.0000.04014.59
5.3.190.0030.03714.51
5.3.180.0000.04014.43
5.3.170.0070.04314.43
5.3.160.0000.04014.59
5.3.150.0000.04014.46
5.3.140.0030.03314.59
5.3.130.0000.04714.63
5.3.120.0130.03314.49
5.3.110.0100.03714.45
5.3.100.0000.04013.96
5.3.90.0070.03014.04
5.3.80.0070.03314.11
5.3.70.0030.03313.96
5.3.60.0030.03713.95
5.3.50.0070.05313.88
5.3.40.0070.04014.04
5.3.30.0030.03313.86
5.3.20.0030.05313.71
5.3.10.0070.03313.66
5.3.00.0130.02713.73
5.2.170.0030.02711.75
5.2.160.0000.03711.75
5.2.150.0000.03711.75
5.2.140.0070.06311.75
5.2.130.0070.02711.75
5.2.120.0000.02711.75
5.2.110.0100.02011.75
5.2.100.0000.03311.75
5.2.90.0070.06311.75
5.2.80.0100.05711.75
5.2.70.0000.06011.75
5.2.60.0070.05711.75
5.2.50.0070.05711.75
5.2.40.0070.06011.75
5.2.30.0000.06011.75
5.2.20.0100.04711.75
5.2.10.0070.05711.75
5.2.00.0030.06011.75
5.1.60.0000.03311.75
5.1.50.0070.05011.75
5.1.40.0070.05311.75
5.1.30.0000.06311.75
5.1.20.0030.05711.75
5.1.10.0030.04311.75
5.1.00.0030.04311.75
5.0.50.0000.05011.75
5.0.40.0000.04711.75
5.0.30.0070.06311.75
5.0.20.0070.03711.75
5.0.10.0070.04011.75
5.0.00.0070.06011.75
4.4.90.0070.03311.75
4.4.80.0000.03311.75
4.4.70.0030.03311.75
4.4.60.0000.04011.75
4.4.50.0000.03311.75
4.4.40.0000.04711.75
4.4.30.0100.01311.75
4.4.20.0000.03711.75
4.4.10.0030.03311.75
4.4.00.0100.04311.75
4.3.110.0000.03311.75
4.3.100.0030.03011.75
4.3.90.0030.03311.75
4.3.80.0070.05011.75
4.3.70.0000.03711.75
4.3.60.0000.03311.75
4.3.50.0030.02311.75
4.3.40.0030.04711.75
4.3.30.0000.03711.75
4.3.20.0000.03011.75
4.3.10.0030.03311.75
4.3.00.0070.02011.75

preferences:
47.5 ms | 401 KiB | 5 Q