3v4l.org

run code in 300+ PHP versions simultaneously
<?php $videoURLs = array( 'http://www.youtube.com/embed/VIDEO_ID', 'http://youtu.be/VIDEO_ID', 'http://www.youtube.com/v/VIDEO_ID', 'http://www.youtube.com/watch?v=VIDEO_ID', ); foreach ($videoURLs as $urlNow) { $url = parse_url($urlNow); #$url['path'] = str_replace(array('/v/', '/embed/', '/'), '', $url['path']); $pathParts = explode('/', $url['path']); $url['path'] = end($pathParts); $videoID = $url['path']; if (isset($url['query'])) { parse_str($url['query'], $query); $videoID = $query['v']; } var_dump($urlNow, $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.60.0060.01218.27
8.3.50.0120.00921.92
8.3.40.0140.00018.88
8.3.30.0090.00618.67
8.3.20.0040.00418.48
8.3.10.0080.00020.41
8.3.00.0040.00423.66
8.2.180.0090.00916.38
8.2.170.0070.00722.96
8.2.160.0070.01120.52
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0120.00319.48
8.2.110.0070.00320.43
8.2.100.0040.00817.91
8.2.90.0040.00419.21
8.2.80.0080.00017.97
8.2.70.0050.00317.75
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0000.00918.34
8.2.30.0000.00719.97
8.2.20.0040.00417.60
8.2.10.0030.00617.70
8.2.00.0000.00717.73
8.1.280.0180.00325.92
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00322.60
8.1.230.0040.00821.03
8.1.220.0060.00318.77
8.1.210.0060.00318.96
8.1.200.0030.00617.36
8.1.190.0040.00417.63
8.1.180.0000.00818.10
8.1.170.0080.00018.49
8.1.160.0000.00718.80
8.1.150.0070.00018.69
8.1.140.0040.00417.55
8.1.130.0030.00317.84
8.1.120.0000.00717.46
8.1.110.0040.00417.45
8.1.100.0070.00017.46
8.1.90.0000.00717.46
8.1.80.0000.00717.49
8.1.70.0000.00817.48
8.1.60.0060.00317.48
8.1.50.0000.00717.46
8.1.40.0000.00717.47
8.1.30.0050.00317.70
8.1.20.0030.00517.55
8.1.10.0040.00417.61
8.1.00.0000.00817.49
8.0.300.0050.00319.93
8.0.290.0000.00717.18
8.0.280.0030.00518.43
8.0.270.0000.00717.34
8.0.260.0000.00916.72
8.0.250.0000.00716.91
8.0.240.0030.00616.89
8.0.230.0030.00316.95
8.0.220.0000.00716.90
8.0.210.0040.00416.80
8.0.200.0040.00417.02
8.0.190.0040.00416.89
8.0.180.0090.00016.89
8.0.170.0000.00816.93
8.0.160.0040.00416.93
8.0.150.0000.00816.82
8.0.140.0000.00716.88
8.0.130.0060.00013.43
8.0.120.0040.00416.88
8.0.110.0000.00816.68
8.0.100.0040.00416.93
8.0.90.0030.00616.90
8.0.80.0130.00716.85
8.0.70.0040.00416.91
8.0.60.0030.00516.88
8.0.50.0040.00416.89
8.0.30.0120.00717.15
8.0.20.0100.00917.40
8.0.10.0050.00317.04
8.0.00.0160.00616.69
7.4.330.0000.00513.43
7.4.320.0060.00016.53
7.4.300.0030.00316.59
7.4.290.0030.00316.64
7.4.280.0060.00316.49
7.4.270.0070.00016.59
7.4.260.0000.00513.29
7.4.250.0040.00416.37
7.4.240.0000.00716.60
7.4.230.0000.00716.25
7.4.220.0100.00716.40
7.4.210.0050.01116.45
7.4.200.0030.00316.62
7.4.190.0030.00316.54
7.4.160.0160.00016.54
7.4.150.0000.01717.40
7.4.140.0140.00717.86
7.4.130.0110.00816.52
7.4.120.0110.01116.54
7.4.110.0170.00316.52
7.4.100.0160.00616.61
7.4.90.0070.01016.51
7.4.80.0110.01119.37
7.4.70.0110.01116.23
7.4.60.0100.00916.31
7.4.50.0030.00516.30
7.4.40.0070.00722.27
7.4.30.0120.00616.56
7.4.00.0060.01014.92
7.3.330.0030.00313.09
7.3.320.0030.00313.13
7.3.310.0000.00716.37
7.3.300.0000.00716.38
7.3.290.0070.00716.32
7.3.280.0120.00616.31
7.3.270.0180.00417.40
7.3.260.0130.00618.24
7.3.250.0080.01516.33
7.3.240.0070.01516.24
7.3.230.0030.01316.39
7.3.210.0070.01016.38
7.3.200.0090.01019.39
7.3.190.0050.01116.26
7.3.180.0130.00316.35
7.3.170.0100.00516.55
7.3.160.0030.01416.53
7.3.120.0100.00714.98
7.3.110.0110.00714.69
7.3.100.0040.01114.98
7.3.90.0030.00914.83
7.3.80.0040.00814.58
7.3.70.0030.01114.77
7.3.60.0070.00314.63
7.3.50.0040.00814.82
7.3.40.0030.01014.61
7.3.30.0070.00714.72
7.3.20.0060.00916.68
7.3.10.0050.00716.56
7.3.00.0040.00816.73
7.2.330.0090.00916.82
7.2.320.0060.01316.42
7.2.310.0110.00716.57
7.2.300.0000.01516.55
7.2.290.0100.00716.50
7.2.250.0060.01215.18
7.2.240.0070.01414.87
7.2.230.0000.01815.22
7.2.220.0060.00915.30
7.2.210.0080.00415.01
7.2.200.0070.01015.18
7.2.190.0090.00014.99
7.2.180.0070.01014.93
7.2.170.0070.00715.24
7.2.130.0060.00316.74
7.2.120.0070.00716.96
7.2.110.0090.00616.73
7.2.100.0070.00317.05
7.2.90.0070.00717.05
7.2.80.0050.00517.04
7.2.70.0080.00617.05
7.2.60.0060.00617.04
7.2.50.0000.00917.03
7.2.40.0040.00417.07
7.2.30.0030.01016.80
7.2.20.0030.01116.92
7.2.10.0050.00516.99
7.2.00.0030.00917.93
7.1.330.0090.00615.78
7.1.320.0090.00615.85
7.1.310.0080.00315.85
7.1.300.0100.00715.47
7.1.290.0060.00615.89
7.1.280.0000.01315.84
7.1.270.0060.00315.88
7.1.260.0000.00915.87
7.1.250.0050.00315.89
7.1.100.0080.00418.27
7.1.70.0000.00817.03
7.1.60.0150.00919.40
7.1.50.0100.00316.62
7.1.00.0000.07022.28
7.0.200.0000.00816.73
7.0.140.0000.07722.01
7.0.60.0030.07721.78
7.0.50.0030.08022.15
7.0.40.0030.08719.94
7.0.30.0070.07020.19
7.0.20.0030.08020.10
7.0.10.0030.06320.03
7.0.00.0070.07720.07
5.6.280.0100.08720.77
5.6.210.0000.08320.61
5.6.200.0030.07021.02
5.6.190.0030.08021.04
5.6.180.0070.08020.89
5.6.170.0100.08021.05
5.6.160.0070.08020.98
5.6.150.0100.07721.12
5.6.140.0100.08021.08
5.6.130.0030.09021.09
5.6.120.0070.06721.11
5.6.110.0030.05720.98
5.6.100.0030.08321.08
5.6.90.0070.06320.96
5.6.80.0000.07720.39
5.6.70.0070.06720.38
5.6.60.0030.07720.49
5.6.50.0070.06320.36
5.6.40.0070.07720.38
5.6.30.0030.08020.45
5.6.20.0030.07720.38
5.6.10.0100.06020.50
5.6.00.0000.08320.39
5.5.350.0000.07320.34
5.5.340.0030.08020.77
5.5.330.0130.06720.84
5.5.320.0030.08720.67
5.5.310.0100.07320.96
5.5.300.0030.08020.95
5.5.290.0070.07020.97
5.5.280.0000.08720.97
5.5.270.0070.07720.83
5.5.260.0000.08720.64
5.5.250.0030.06320.68
5.5.240.0070.06320.23
5.5.230.0100.06020.15
5.5.220.0070.07020.25
5.5.210.0000.08720.14
5.5.200.0030.08320.21
5.5.190.0130.06720.13
5.5.180.0070.07320.33
5.5.160.0070.06020.15
5.5.150.0000.08020.24
5.5.140.0070.07320.12
5.5.130.0070.06720.15
5.5.120.0000.08020.11
5.5.110.0100.06020.14
5.5.100.0070.08020.10
5.5.90.0100.07020.21
5.5.80.0070.07320.02
5.5.70.0130.06320.11
5.5.60.0070.06319.88
5.5.50.0030.07320.04
5.5.40.0070.07019.88
5.5.30.0000.07319.98
5.5.20.0030.07320.05
5.5.10.0130.06320.07
5.5.00.0000.06020.06
5.4.450.0000.07719.26
5.4.440.0070.06319.33
5.4.430.0030.07719.25
5.4.420.0070.07319.22
5.4.410.0070.07019.14
5.4.400.0030.05018.98
5.4.390.0070.07319.05
5.4.380.0000.05719.02
5.4.370.0030.07318.97
5.4.360.0030.08018.95
5.4.350.0000.08719.08
5.4.340.0000.07319.00
5.4.320.0130.06718.93
5.4.310.0070.07319.08
5.4.300.0030.07018.98
5.4.290.0070.06718.90
5.4.280.0100.06019.00
5.4.270.0030.07319.05
5.4.260.0030.07019.09
5.4.250.0130.06019.16
5.4.240.0070.07019.16
5.4.230.0030.08018.96
5.4.220.0130.04019.16
5.4.210.0070.06019.15
5.4.200.0000.07319.19
5.4.190.0000.06319.00
5.4.180.0030.08018.91
5.4.170.0000.07718.89
5.4.160.0030.07018.93
5.4.150.0000.06318.96
5.4.140.0030.07716.28
5.4.130.0100.06016.30
5.4.120.0000.06016.27
5.4.110.0070.03716.30
5.4.100.0030.04316.41
5.4.90.0000.07016.41
5.4.80.0030.07316.29
5.4.70.0100.06316.26
5.4.60.0070.06016.36
5.4.50.0100.06316.27
5.4.40.0100.07016.50
5.4.30.0030.06016.37
5.4.20.0000.05016.27
5.4.10.0000.07716.39
5.4.00.0100.06715.74
5.3.290.0070.07014.60
5.3.280.0000.08014.43
5.3.270.0070.06314.57
5.3.260.0100.07014.45
5.3.250.0000.08314.43
5.3.240.0070.07014.58
5.3.230.0030.07714.52
5.3.220.0100.07014.32
5.3.210.0000.06314.52
5.3.200.0000.04014.50
5.3.190.0100.06714.49
5.3.180.0000.07314.54
5.3.170.0070.06314.54
5.3.160.0000.08014.51
5.3.150.0000.07314.39
5.3.140.0030.07714.49
5.3.130.0030.08314.48
5.3.120.0030.07314.51
5.3.110.0030.07714.50
5.3.100.0100.06713.82
5.3.90.0000.08013.84
5.3.80.0030.07713.86
5.3.70.0000.07014.00
5.3.60.0070.06313.95
5.3.50.0000.07013.88
5.3.40.0030.06313.91
5.3.30.0000.07313.87
5.3.20.0030.06713.64
5.3.10.0100.06313.43
5.3.00.0070.06713.49
5.2.170.0000.06311.09
5.2.160.0000.06011.12
5.2.150.0030.06010.97
5.2.140.0000.06711.18
5.2.130.0030.06011.10
5.2.120.0070.06011.13
5.2.110.0000.06711.08
5.2.100.0030.06311.09
5.2.90.0030.05710.93
5.2.80.0000.06011.10
5.2.70.0000.07011.06
5.2.60.0130.05710.96
5.2.50.0030.05310.95
5.2.40.0070.05311.00
5.2.30.0000.05710.92
5.2.20.0070.05710.95
5.2.10.0070.04710.71
5.2.00.0000.06010.75
5.1.60.0030.04710.04
5.1.50.0130.0509.96
5.1.40.0030.0479.81
5.1.30.0000.05710.35
5.1.20.0000.05710.35
5.1.10.0000.03710.05
5.1.00.0070.05010.05
5.0.50.0030.0438.57
5.0.40.0070.0308.30
5.0.30.0000.0578.30
5.0.20.0030.0438.30
5.0.10.0000.0478.30
5.0.00.0030.0578.30
4.4.90.0000.0378.30
4.4.80.0000.0378.30
4.4.70.0000.0338.30
4.4.60.0000.0308.30
4.4.50.0030.0338.30
4.4.40.0030.0508.30
4.4.30.0000.0378.30
4.4.20.0070.0178.30
4.4.10.0000.0408.30
4.4.00.0000.0508.30
4.3.110.0030.0238.30
4.3.100.0000.0338.30
4.3.90.0070.0308.30
4.3.80.0000.0508.30
4.3.70.0000.0338.30
4.3.60.0030.0308.30
4.3.50.0000.0378.30
4.3.40.0030.0538.30
4.3.30.0000.0378.30
4.3.20.0030.0308.30
4.3.10.0030.0238.30
4.3.00.0030.0378.30

preferences:
61.71 ms | 401 KiB | 5 Q