3v4l.org

run code in 300+ PHP versions simultaneously
<?php $videoURLs = array( 'http://www.youtube.com/embed/VIDEO_ID', 'http://www.youtube.com/embed/VIDEO_ID/', 'http://www.youtube.com/embed/VIDEO_ID/?lorem=ipsum', 'http://youtu.be/VIDEO_ID', 'http://youtu.be/VIDEO_ID/', 'http://www.youtube.com/v/VIDEO_ID', 'http://www.youtube.com/v/VIDEO_ID/', 'http://www.youtube.com/watch?v=VIDEO_ID', 'http://www.youtube.com/watch?feature=player_embedded&v=VIDEO_ID', 'http://www.youtube.com/watch?v=VIDEO_ID&feature=player_embedded' ); foreach ($videoURLs as $videoUrl) { $url = parse_url($videoUrl); $pathParts = explode('/', rtrim($url['path'], '/')); $videoID = end($pathParts); if (isset($url['query'])) { parse_str($url['query'], $query); #$videoID = (isset($query['v'])) ? $query['v'] : $videoID; } var_dump($videoUrl, $videoID); } ?>

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.70.0040.01118.43
8.3.60.0000.01416.50
8.3.50.0110.00817.46
8.3.40.0070.01418.59
8.3.30.0150.00018.73
8.3.20.0090.00018.60
8.3.10.0060.00318.82
8.3.00.0000.00819.38
8.2.180.0120.00916.38
8.2.170.0150.00622.96
8.2.160.0100.00321.20
8.2.150.0030.00625.66
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0030.00622.03
8.2.110.0030.00621.01
8.2.100.0090.00317.91
8.2.90.0000.00919.27
8.2.80.0050.00319.46
8.2.70.0060.00317.50
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0000.00818.34
8.2.30.0000.00818.00
8.2.20.0040.00417.85
8.2.10.0040.00417.63
8.2.00.0000.00717.71
8.1.280.0070.00725.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.95
8.1.230.0040.00720.88
8.1.220.0000.00817.79
8.1.210.0060.00319.04
8.1.200.0000.01017.35
8.1.190.0040.00417.40
8.1.180.0000.00818.10
8.1.170.0070.00018.71
8.1.160.0040.00418.94
8.1.150.0070.00018.56
8.1.140.0040.00417.46
8.1.130.0000.00717.75
8.1.120.0040.00417.38
8.1.110.0030.00517.45
8.1.100.0030.00517.36
8.1.90.0050.00317.48
8.1.80.0070.00017.43
8.1.70.0040.00417.46
8.1.60.0080.00017.61
8.1.50.0040.00417.53
8.1.40.0040.00417.55
8.1.30.0070.00017.69
8.1.20.0070.00017.70
8.1.10.0030.00617.63
8.1.00.0040.00417.46
8.0.300.0080.00020.09
8.0.290.0070.00016.75
8.0.280.0070.00018.46
8.0.270.0000.00717.30
8.0.260.0030.00316.82
8.0.250.0030.00516.98
8.0.240.0000.00816.96
8.0.230.0000.00717.00
8.0.220.0000.00716.96
8.0.210.0070.00016.89
8.0.200.0030.00316.97
8.0.190.0050.00216.96
8.0.180.0000.00816.90
8.0.170.0090.00016.90
8.0.160.0000.00816.96
8.0.150.0080.00016.87
8.0.140.0080.00416.89
8.0.130.0000.00613.29
8.0.120.0040.00416.98
8.0.110.0030.00516.73
8.0.100.0070.00016.90
8.0.90.0040.00417.02
8.0.80.0060.01016.89
8.0.70.0000.00716.78
8.0.60.0040.00416.70
8.0.50.0030.00516.98
8.0.30.0090.00917.30
8.0.20.0090.00916.89
8.0.10.0040.00417.00
8.0.00.0150.00516.82
7.4.330.0060.00013.06
7.4.320.0060.00016.54
7.4.300.0030.00316.42
7.4.290.0060.00316.54
7.4.280.0000.00816.47
7.4.270.0030.00516.53
7.4.260.0030.00313.34
7.4.250.0040.00416.40
7.4.240.0050.00216.61
7.4.230.0040.00416.62
7.4.220.0160.00616.55
7.4.210.0060.01116.58
7.4.200.0030.00316.32
7.4.190.0000.00716.61
7.4.160.0170.00616.59
7.4.150.0130.00616.54
7.4.140.0100.01016.57
7.4.130.0110.01016.47
7.4.120.0070.01116.38
7.4.110.0100.01316.73
7.4.100.0120.00616.58
7.4.90.0080.01216.55
7.4.80.0060.01216.44
7.4.70.0090.01216.53
7.4.60.0060.01216.48
7.4.50.0000.01316.32
7.4.40.0040.01116.70
7.4.30.0000.02016.62
7.4.00.0070.01014.45
7.3.330.0000.00613.18
7.3.320.0000.00513.22
7.3.310.0030.00516.29
7.3.300.0070.00016.21
7.3.290.0100.01016.26
7.3.280.0080.00916.27
7.3.270.0060.01216.55
7.3.260.0170.00516.41
7.3.250.0210.00416.24
7.3.240.0150.00316.27
7.3.230.0090.00916.67
7.3.210.0130.00416.39
7.3.200.0100.00719.39
7.3.190.0120.01216.58
7.3.180.0000.01716.41
7.3.170.0110.00516.66
7.3.160.0110.00616.30
7.3.120.0060.00914.67
7.2.330.0030.01716.64
7.2.320.0140.00716.77
7.2.310.0170.00816.75
7.2.300.0160.00016.68
7.2.290.0100.00816.46
7.2.00.0060.00619.50
7.1.100.0000.01318.20
7.1.70.0060.00616.81
7.1.60.0090.00619.40
7.1.50.0100.01316.95
7.1.00.0030.04722.51
7.0.200.0050.00316.84
7.0.140.0170.06321.95
7.0.120.0030.06321.96
7.0.60.0130.08019.91
7.0.50.0100.07717.86
7.0.40.0070.08719.97
7.0.30.0300.08320.04
7.0.20.0330.07320.10
7.0.10.0030.07320.19
7.0.00.0000.05020.29
5.6.280.0000.07721.09
5.6.210.0100.04720.47
5.6.200.0030.09018.08
5.6.190.0000.08020.76
5.6.180.4200.04320.35
5.6.170.0270.07320.51
5.6.160.0030.09020.51
5.6.150.0030.04718.21
5.6.140.0030.04318.20
5.6.130.0130.06018.09
5.6.120.0100.07020.99
5.6.110.0030.04320.97
5.6.100.0070.07321.04
5.6.90.0100.06021.10
5.6.80.0100.06320.28
5.6.70.4470.04020.55
5.5.350.0230.08020.33
5.5.340.0030.05017.88
5.5.330.0070.04020.44
5.5.320.1070.07020.18
5.5.310.0200.03720.27
5.5.300.0100.08017.89
5.5.290.0130.08317.98
5.5.280.0100.06020.77
5.5.270.0030.04020.72
5.5.260.0100.08020.86
5.5.250.0070.08020.61
5.5.240.0200.08020.19
5.4.450.0100.03319.51
5.4.440.0030.05319.50
5.4.430.0070.05719.43
5.4.420.0130.06019.24
5.4.410.0030.05019.33
5.4.400.0070.07019.16
5.4.390.0100.03319.18
5.4.380.0130.06719.18
5.4.370.0030.05319.15
5.4.360.0070.08319.00
5.4.350.0070.04319.12
5.4.340.0070.05019.08
5.4.320.0030.08018.79
5.4.310.0070.03719.18
5.4.300.0070.07719.18
5.4.290.0030.05719.19
5.4.280.0130.04018.78
5.4.270.0130.05719.17
5.4.260.0100.04319.09
5.4.250.0070.05018.78
5.4.240.0170.07018.90
5.4.230.0070.05719.07
5.4.220.0000.04719.17
5.4.210.0030.04019.17
5.4.200.0100.06019.07
5.4.190.0130.05018.99
5.4.180.0100.07718.91
5.4.170.0100.06718.90
5.4.160.0100.04319.12
5.4.150.0070.08018.76
5.4.140.0070.04316.45
5.4.130.0030.04716.28
5.4.120.0130.06316.25
5.4.110.0130.06716.34
5.4.100.0130.06316.27
5.4.90.0000.04316.28
5.4.80.0030.04016.32
5.4.70.0100.07016.42
5.4.60.0030.06316.21
5.4.50.0030.07016.37
5.4.40.0030.07016.34
5.4.30.0030.07316.36
5.4.20.0100.06716.38
5.4.10.0030.08016.29
5.4.00.0070.07015.64
5.3.290.0100.07314.61
5.3.280.0170.03314.52
5.3.270.0030.08014.63
5.3.260.0000.04714.58
5.3.250.0000.07014.50
5.3.240.0070.05714.55
5.3.230.0030.04314.50
5.3.220.0070.07014.45
5.3.210.0070.07714.49
5.3.200.0070.05014.47
5.3.190.0130.07314.51
5.3.180.0000.04314.49
5.3.170.0030.04314.45
5.3.160.0130.06714.50
5.3.150.0030.04714.46
5.3.140.0100.05314.46
5.3.130.0130.06014.48
5.3.120.0130.06314.49
5.3.110.0000.08714.52
5.3.100.0000.06313.93
5.3.90.0100.04713.97
5.3.80.0030.07714.04
5.3.70.0070.04713.95
5.3.60.0030.04313.97
5.3.50.0000.08313.79
5.3.40.0100.07013.89
5.3.30.0070.06313.93
5.3.20.0030.06313.48
5.3.10.0000.07713.48
5.3.00.0100.04713.58
5.2.170.0030.03311.13
5.2.160.0000.03711.15
5.2.150.0070.06311.08
5.2.140.0030.03311.13
5.2.130.0000.06311.00
5.2.120.0030.06311.08
5.2.110.0000.06311.03
5.2.100.0030.06311.05
5.2.90.0100.03710.93
5.2.80.0100.05711.04
5.2.70.0070.05011.18
5.2.60.0030.05711.06
5.2.50.0070.03311.01
5.2.40.0130.02311.15
5.2.30.0030.06310.90
5.2.20.0100.06010.95
5.2.10.0030.04010.85
5.2.00.0030.06010.57
5.1.60.0030.04710.14
5.1.50.0070.02310.00
5.1.40.0000.0479.99
5.1.30.0000.04710.32
5.1.20.0030.05710.40
5.1.10.0000.04010.06
5.1.00.0070.05310.15
5.0.50.0000.0338.70
5.0.40.0030.0278.25
5.0.30.0030.0678.24
5.0.20.0030.0208.25
5.0.10.0000.0478.19
5.0.00.0030.0478.24
4.4.90.0070.0308.04
4.4.80.0030.0208.04
4.4.70.0000.0278.04
4.4.60.0000.0238.04
4.4.50.0070.0178.04
4.4.40.0000.0508.04
4.4.30.0070.0308.04
4.4.20.0030.0378.04
4.4.10.0000.0278.04
4.4.00.0000.0438.04
4.3.110.0000.0338.04
4.3.100.0000.0238.04
4.3.90.0000.0178.04
4.3.80.0000.0578.04
4.3.70.0070.0308.04
4.3.60.0030.0338.04
4.3.50.0000.0278.04
4.3.40.0070.0508.04
4.3.30.0000.0278.04
4.3.20.0000.0378.04
4.3.10.0030.0378.04
4.3.00.0000.0238.04

preferences:
41.7 ms | 401 KiB | 5 Q