3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<EOL<script type="text/javascript" src="http://dogtrickstutorial.com/ova.jwplayer.5x/dist/js/ova-examples.js"></script><script type="text/javascript" src="http://dogtrickstutorial.com/ova.jwplayer.5x/dist/js/jwplayer.js"></script><style type="text/css"><!-- @import url(http://dogtrickstutorial.com/ova.jwplayer.5x/dist/css/global.css);--></style><h2>Tap-View VAST/VPAID Test Page</h2><p class="example"></p><div id="tag_container" style="display: none;width:800px;padding-left:1px;border-style:solid;border-color:#EAE6E6;border-width:3px;font-family:helvetica,arial,sans-serif;padding-left:0px;"> <form name="tagform" style="width:800px;"> <input type="text" id="adtag" style="width:720px;" value="Enter your ad tag here" defaultValue="Enter your ad tag here" onClick="javascript:clearText(this);"/> <input type="button" value="Submit" class="btn" style="color:#050;font:bold 84% 'trebuchet ms',helvetica,arial,sans-serif;background-color:#fed;border: 1px solid;border-color: #696 #363 #363 #696;filter:progid:DXImageTransform.Microsoft.Gradient (GradientType=0,StartColorStr='#ffffffff',EndColorStr='#ffeeddaa');" onClick="javascript:configureOVA();"> </form></div><div style="display: none;" id="example_tag" style="width:648px;padding-left:1px;font-family:helvetica,arial,sans-serif;padding-left:1px;font-size:11px;padding-top:5px;padding-bottom:10px;"> <u>Examples:</u><br/> &nbsp;&nbsp;Linear Stream: http://ad3.liverail.com/?LR_PUBLISHER_ID=1331&LR_CAMPAIGN_ID=229&LR_SCHEMA=vast2<br/> &nbsp;&nbsp;Linear VPAID: http://search.spotxchange.com/vast/2.00/74856?VPAID=1&content_page_url=mypage&cb=__random-number__<br/></div><div id="player_row" style="height:260px;width:800px;"> <div style="float:left;"> <div id="container" style="width:320px;height:254px;float:left;background:#F1F1F1;padding-left:1px;font-family:helvetica,arial,sans serif;padding-left:1px;"> </div> </div> <div id="companion" style="width:300px;height:250px;float:left;margin-left:5px;background:#F1F1F1;border-style:solid;border-color:#EAE6E6;border-width:2px;"> </div></div><br/><div><form id="playerSizing" style="display: none;">height: <input type="text" name="height" size="4" value="254"/>&nbsp;width: <input type="text" name="width" size="4" value="320"/>&nbsp;<button type="button" onClick="resizePlayer();">Resize Player</button><form></div><script type="text/javascript">var JW_PLAYER_CONTAINER_ID = "container";function resizePlayer(form) { var width = document.forms["playerSizing"]["width"].value; var height = document.forms["playerSizing"]["height"].value; $("#player_row").css("width", width + "px"); $("#player_row").css("height", height + "px"); jwplayer(JW_PLAYER_CONTAINER_ID).resize(width, height); debug("Have resized the player to " + width + "x" + height);}function clearText(field){ if (field.defaultValue == field.value) field.value = ''; return true;}function getAdTag() { return document.tagform.adtag.value;}function formatConfig(config) { var result = "<br/>/*<br/>"; result += "&nbsp;* This OVA configuration plays a pre-roll and has a<br/>"; result += "&nbsp;* single 300x250 companion declared.<br/>"; result += "&nbsp;*/<br/><br/>"; config = config.replace(/\\n/gi,"<br/>"); config = config.replace(/ /gi,"&nbsp;"); return result + config + "<br/>";}function configureOVA() { var adTag = "this-is-my-ad-tag"; newConfig = '{\\n'; newConfig += ' "debug": { "levels": "fatal,config,vast_template,vpaid,http_calls,playlist,api,display_events,segment_formation" },\\n'; newConfig += ' "autoPlay": true,\\n'; newConfig += ' "ads": {\\n'; newConfig += ' "companions": {\\n'; newConfig += ' "regions": [\\n'; newConfig += ' { "id":"companion", "width":300, "height":250 }\\n'; newConfig += ' ]\\n'; newConfig += ' },\\n'; newConfig += ' "vpaid": {\\n'; newConfig += ' "enableLinearScaling": false\\n'; newConfig += ' },\\n'; newConfig += ' "schedule": [\\n'; newConfig += ' {\\n'; newConfig += ' "position": "pre-roll",\\n'; newConfig += ' "tag": "' + getAdTag() + '"\\n'; newConfig += ' }\\n'; newConfig += ' ]\\n'; newConfig += ' }\\n'; newConfig += '}\\n'; jwplayer(JW_PLAYER_CONTAINER_ID).getPlugin("ova").scheduleAds(null, newConfig); $("div.codebox").html(formatConfig(newConfig)); return true;}jwplayer(JW_PLAYER_CONTAINER_ID).setup({ flashplayer: OVA_PLAYER_3, playlist: [ { file: "http://cdn-static.liverail.com/swf/ui/uivideo.mp4", duration: 10 } ], "controlbar.position": "bottom", plugins: { "http://dogtrickstutorial.com/ova.jwplayer.5x/dist/swf/ova-jw.js": { "ads": { "companions": [ { "id":"companion", "width":300, "height":250 } ], "schedule": [ { "position": "pre-roll", "tag": ""EOL;return $html;

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.380.0200.06018.60
5.4.370.0170.05318.71
5.4.360.0270.04318.78
5.4.350.0230.05018.82
5.4.340.0100.05015.31
5.4.320.0110.04814.61
5.4.310.0150.03914.51
5.4.300.0140.04314.56
5.4.290.0120.04414.59
5.4.280.0110.05314.44
5.4.270.0080.04614.44
5.4.260.0140.04614.49
5.4.250.0110.04914.52
5.4.240.0140.04214.41
5.4.230.0170.05114.50
5.4.220.0150.04514.39
5.4.210.0120.04514.50
5.4.200.0120.04213.77
5.4.190.0110.04614.52
5.4.180.0170.03914.40
5.4.170.0100.04114.51
5.4.160.0100.04014.52
5.4.150.0160.03614.40
5.4.140.0120.04213.47
5.4.130.0090.04013.44
5.4.120.0100.04313.48
5.4.110.0080.04213.45
5.4.100.0070.04313.45
5.4.90.0110.04313.44
5.4.80.0160.04313.44
5.4.70.0090.04313.41
5.4.60.0060.04913.43
5.4.50.0110.04013.43
5.4.40.0090.04113.39
5.4.30.0120.04713.42
5.4.20.0060.04813.41
5.4.10.0170.03313.46
5.4.00.0080.04212.87
5.3.290.0090.05313.42
5.3.280.0080.04613.34
5.3.270.0080.04813.38
5.3.260.0140.04513.33
5.3.250.0110.04613.37
5.3.240.0110.04313.38
5.3.230.0080.04813.31
5.3.220.0090.04413.27
5.3.210.0110.04413.34
5.3.200.0130.03813.33
5.3.190.0080.04413.34
5.3.180.0110.04313.28
5.3.170.0110.04313.30
5.3.160.0120.04613.29
5.3.150.0080.04713.28
5.3.140.0120.04113.31
5.3.130.0080.04813.28
5.3.120.0110.04413.26
5.3.110.0100.04513.28
5.3.100.0140.04212.78
5.3.90.0100.04212.76
5.3.80.0090.04112.69
5.3.70.0070.04512.75
5.3.60.0070.04512.74
5.3.50.0130.03812.68
5.3.40.0080.04712.68
5.3.30.0080.04212.60
5.3.20.0110.03812.35
5.3.10.0140.03612.32
5.3.00.0090.04112.31
5.2.170.0090.0329.85
5.2.160.0080.0329.82
5.2.150.0090.0349.82
5.2.140.0060.0379.82
5.2.130.0090.0329.81
5.2.120.0120.0309.82
5.2.110.0080.0369.80
5.2.100.0110.0339.77
5.2.90.0100.0329.79
5.2.80.0090.0349.77
5.2.70.0100.0319.84
5.2.60.0080.0379.72
5.2.50.0090.0379.73
5.2.40.0050.0339.71
5.2.30.0110.0329.68
5.2.20.0070.0379.70
5.2.10.0100.0329.61
5.2.00.0100.0319.43
5.1.60.0080.0278.72
5.1.50.0050.0298.73
5.1.40.0080.0318.72
5.1.30.0080.0349.08
5.1.20.0070.0319.07
5.1.10.0050.0318.81
5.1.00.0060.0328.80
5.0.50.0090.0257.28
5.0.40.0070.0247.16
5.0.30.0070.0386.94
5.0.20.0030.0256.95
5.0.10.0040.0256.92
5.0.00.0070.0336.91
4.4.90.0040.0185.16
4.4.80.0060.0175.12
4.4.70.0020.0205.11
4.4.60.0040.0175.11
4.4.50.0090.0165.14
4.4.40.0040.0315.11
4.4.30.0060.0165.13
4.4.20.0050.0165.21
4.4.10.0020.0185.21
4.4.00.0060.0275.15
4.3.110.0050.0185.05
4.3.100.0030.0195.05
4.3.90.0060.0165.03
4.3.80.0040.0294.99
4.3.70.0060.0165.03
4.3.60.0020.0185.05
4.3.50.0030.0175.01
4.3.40.0060.0324.95
4.3.30.0020.0193.71
4.3.20.0040.0163.70
4.3.10.0020.0193.69
4.3.00.0070.0177.21

preferences:
144.04 ms | 1394 KiB | 7 Q