3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array ( 'fallback_host' => 'tc.v17.cache6.googlevideo.com', 'itag' => '22', 'type' => 'video/mp4', codecs="avc1.64001F, mp4a.40.2" 'url' => 'http://r2---sn-5hn7ym76.googlevideo.com/videoplayback?expire=1412297179&upn=H_W9V7NSkyw&ipbits=0&nh=EAE&key=yt5&itag=22&mm=31&source=youtube&mv=u&ip=31.220.17.48&mt=1412275560&ms=au&fexp=911305%2C915516%2C927622%2C930666%2C930826%2C931983%2C932404%2C934030%2C935672%2C946013%2C947209%2C952302%2C953801&sparams=dur%2Cid%2Cip%2Cipbits%2Citag%2Cmime%2Cmm%2Cms%2Cmv%2Cnh%2Csource%2Cupn%2Cexpire&sver=3&signature=27EE3599D3E524ABFFF59F9239C4C0ED6AF46946.02A3EB7A4C3D4191A42F332AE17ED0399EB2DFC4&dur=600.653&mime=video%2Fmp4&id=o-AKruX81c6iPJIurBOhYrCZpUE1fo6nDgDdQljlWHAD8j', 'quality' => 'hd720' ) ); $r = array(); function test($array, $number) { foreach($array as $r) if ($r['itag'] == $number) { echo '<a href="'.$r['url'].'">quality: '.$r['itag'].'</a>'; } } test($array, 22); test($array, 18);

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)
5.4.320.0040.03912.50
5.4.310.0050.03812.49
5.4.300.0080.03612.49
5.4.290.0090.03912.50
5.4.280.0070.03312.39
5.4.270.0060.03612.39
5.4.260.0040.03912.39
5.4.250.0050.03812.39
5.4.240.0050.03812.39
5.4.230.0050.04012.38
5.4.220.0050.04112.38
5.4.210.0060.03812.38
5.4.200.0060.03712.38
5.4.190.0110.03112.38
5.4.180.0050.03612.38
5.4.170.0060.03812.38
5.4.160.0040.03812.38
5.4.150.0050.03712.38
5.4.140.0060.04112.07
5.4.130.0070.03412.05
5.4.120.0050.03512.02
5.4.110.0070.03312.01
5.4.100.0060.03512.01
5.4.90.0030.03912.02
5.4.80.0050.03812.01
5.4.70.0050.03512.01
5.4.60.0080.03312.01
5.4.50.0060.03512.01
5.4.40.0080.03212.00
5.4.30.0060.03511.99
5.4.20.0090.03211.99
5.4.10.0040.03811.99
5.4.00.0060.03511.48
5.3.290.0080.03612.80
5.3.280.0100.03812.71
5.3.270.0090.04812.72
5.3.260.0100.03612.72
5.3.250.0070.03612.72
5.3.240.0070.03712.72
5.3.230.0070.04212.71
5.3.220.0030.04112.68
5.3.210.0050.04012.68
5.3.200.0040.04412.68
5.3.190.0090.03612.68
5.3.180.0080.03712.67
5.3.170.0050.04012.67
5.3.160.0050.03612.67
5.3.150.0100.03712.67
5.3.140.0090.04212.66
5.3.130.0050.04112.66
5.3.120.0110.03512.65
5.3.110.0090.03612.66
5.3.100.0040.03812.12
5.3.90.0080.03912.08
5.3.80.0060.03912.08
5.3.70.0060.03712.08
5.3.60.0080.04312.07
5.3.50.0060.04712.00
5.3.40.0070.03812.00
5.3.30.0080.03911.95
5.3.20.0070.04711.72
5.3.10.0070.03411.70
5.3.00.0070.03511.68
5.2.170.0070.0339.18
5.2.160.0040.0369.18
5.2.150.0050.0419.18
5.2.140.0060.0339.18
5.2.130.0050.0349.14
5.2.120.0080.0359.14
5.2.110.0050.0299.14
5.2.100.0050.0309.14
5.2.90.0050.0299.14
5.2.80.0070.0359.14
5.2.70.0070.0399.14
5.2.60.0070.0299.09
5.2.50.0050.0349.06
5.2.40.0070.0299.04
5.2.30.0050.0349.02
5.2.20.0040.0299.00
5.2.10.0060.0318.93
5.2.00.0050.0328.78
5.1.60.0040.0258.06
5.1.50.0060.0238.06
5.1.40.0050.0328.05
5.1.30.0040.0278.40
5.1.20.0050.0298.42
5.1.10.0050.0278.14
5.1.00.0020.0318.14
5.0.50.0020.0236.63
5.0.40.0030.0236.48
5.0.30.0060.0336.29
5.0.20.0030.0276.27
5.0.10.0060.0256.25
5.0.00.0010.0326.23
4.4.90.0050.0164.78
4.4.80.0040.0164.76
4.4.70.0050.0174.75
4.4.60.0080.0194.75
4.4.50.0040.0174.77
4.4.40.0020.0264.71
4.4.30.0050.0134.76
4.4.20.0040.0154.84
4.4.10.0040.0254.85
4.4.00.0030.0244.76
4.3.110.0020.0164.67
4.3.100.0030.0154.66
4.3.90.0050.0124.63
4.3.80.0010.0264.58
4.3.70.0040.0134.63
4.3.60.0050.0144.62
4.3.50.0030.0224.63
4.3.40.0030.0264.54
4.3.30.0040.0143.29
4.3.20.0020.0173.27
4.3.10.0020.0183.22
4.3.00.0100.0137.52

preferences:
146.93 ms | 1398 KiB | 8 Q