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, 43); 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.0500.05318.94
5.4.310.0330.04719.06
5.4.300.0370.03718.93
5.4.290.0430.06319.22
5.4.280.0330.07018.97
5.4.270.0270.04019.22
5.4.260.0270.05319.15
5.4.250.0200.04319.12
5.4.240.0270.04319.04
5.4.230.0530.02719.10
5.4.220.0300.05019.22
5.4.210.0370.06719.22
5.4.200.0230.04719.06
5.4.190.0330.07018.98
5.4.180.0230.04019.12
5.4.170.0330.05719.18
5.4.160.0300.06719.15
5.4.150.0300.07719.09
5.4.140.0270.05716.50
5.4.130.0370.06016.33
5.4.120.0270.04716.25
5.4.110.0270.06316.48
5.4.100.0170.03716.35
5.4.90.0200.04316.49
5.4.80.0230.03716.46
5.4.70.0300.03316.22
5.4.60.0300.03316.23
5.4.50.0300.04316.43
5.4.40.0430.06716.42
5.4.30.0330.06316.32
5.4.20.0330.03016.29
5.4.10.0300.07016.45
5.4.00.0300.07015.89
5.3.290.0430.05314.62
5.3.280.0330.05014.55
5.3.270.0270.06314.56
5.3.260.0130.04314.54
5.3.250.0330.05014.54
5.3.240.0430.06714.54
5.3.230.0300.07014.69
5.3.220.0270.05014.52
5.3.210.0230.03714.66
5.3.200.0200.04714.54
5.3.190.0270.03014.49
5.3.180.0370.06014.54
5.3.170.0230.03714.58
5.3.160.0400.07014.48
5.3.150.0330.03314.67
5.3.140.0330.06714.65
5.3.130.0330.07314.48
5.3.120.0370.07314.39
5.3.110.0300.04314.47
5.3.100.0300.05014.00
5.3.90.0330.05713.83
5.3.80.0400.06313.83
5.3.70.0470.05714.03
5.3.60.0370.07013.94
5.3.50.0470.05013.88
5.3.40.0300.03713.88
5.3.30.0400.07013.87
5.3.20.0330.03713.70
5.3.10.0400.06313.59
5.3.00.0300.03313.42
5.2.170.0330.03311.13
5.2.160.0230.02711.08
5.2.150.0270.03011.08
5.2.140.0330.04310.96
5.2.130.0270.03711.09
5.2.120.0330.06011.26
5.2.110.0370.04711.08
5.2.100.0270.02711.00
5.2.90.0330.04711.08
5.2.80.0430.04711.08
5.2.70.0330.05711.10
5.2.60.0370.05710.93
5.2.50.0370.05311.00
5.2.40.0230.02710.93
5.2.30.0300.05010.87
5.2.20.0170.04010.86
5.2.10.0230.04010.87
5.2.00.0370.04710.71
5.1.60.0270.0509.99
5.1.50.0230.04010.05
5.1.40.0200.0279.96
5.1.30.0170.02710.49
5.1.20.0170.02710.36
5.1.10.0230.02710.08
5.1.00.0130.03310.11
5.0.50.0170.0238.55
5.0.40.0200.0408.38
5.0.30.0100.0308.12
5.0.20.0170.0278.20
5.0.10.0170.0138.30
5.0.00.0100.0308.12
4.4.90.0200.0277.72
4.4.80.0100.0337.72
4.4.70.0200.0207.72
4.4.60.0130.0237.72
4.4.50.0170.0307.72
4.4.40.0100.0307.72
4.4.30.0100.0177.72
4.4.20.0130.0207.72
4.4.10.0130.0337.72
4.4.00.0200.0207.72
4.3.110.0100.0177.72
4.3.100.0100.0377.72
4.3.90.0100.0237.72
4.3.80.0100.0277.72
4.3.70.0170.0307.72
4.3.60.0130.0237.72
4.3.50.0100.0177.72
4.3.40.0100.0477.72
4.3.30.0100.0307.72
4.3.20.0030.0377.72
4.3.10.0000.0207.72
4.3.00.0030.0207.72

preferences:
134.63 ms | 1398 KiB | 7 Q