3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start("ob_gzhandler"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html xmlns="http://www.w3.org/TR/REC-html40"> <head> <LINK REL="stylesheet" TYPE="text/css" MEDIA="all" HREF="../style.css.php"> <script LANGUAGE="javascript" TYPE="text/javascript" SRC="../script.js.php"></script> <script type="text/javascript"> <!--// function shrink(){ document.getElementById("MediaPlayer1").style.width=384; document.getElementById("MediaPlayer1").style.height=300; } function enLarge(){ document.getElementById("MediaPlayer1").style.width=480; document.getElementById("MediaPlayer1").style.height=402; } //--> </script> <title></title> </head><body><a name='top'></a><H3><center>Videos</center></h3> <p class='logo'> <button onclick="enLarge()">large</button> <button onclick="shrink()">small</button> <a href='..'>Main Menu</a> <A HREF="http://www.microsoft.com/windows/windowsmedia/player/download/"><IMG ALT="Get Windows Media Player" SRC="http://www.microsoft.com/windows/windowsmedia/images/logos/getwm/mp11_88x31_static.gif" WIDTH="88" HEIGHT="31" BORDER="0"></A><br> <OBJECT ID="MediaPlayer1" width=384 height=300 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject"> <PARAM NAME="fileName" VALUE=""> <PARAM NAME="showControls" VALUE="true"> <PARAM NAME="PlayCount" VALUE="0"> <PARAM NAME="animationatStart" VALUE="true"> <PARAM NAME="transparentatStart" VALUE="true"> <PARAM NAME="autoStart" VALUE="true"> <EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" SRC="" name="MediaPlayer1" width=360 height=260 AutoStart=true></EMBED></object></p> <div style='float:left; text-align:left;'> <?php $p = split('/', $_SERVER['SCRIPT_FILENAME']); $script_name = $p[count($p)-1]; $path = str_replace($script_name, '', $_SERVER['SCRIPT_FILENAME']); $dir_handle = @opendir($path) or die("Unable to open $path"); Function get_Extension($m_FileName){ $path_parts = pathinfo($m_FileName); if ($path_parts["extension"]) { $m_Extension = strtolower($path_parts["extension"]); return(strtoupper($m_Extension)); } else { return "unknown"; } } function check_image($filename){ $temp=strtoupper(get_Extension($filename)); if(($temp=="MP3")||($temp=="WMA")||($temp=="WMV")||($temp=="ASF")) return (true); else return (false); } Function get_Files($path) { if ($handle = opendir($path)) { while (false !== ($file = readdir($handle))) { if(!is_dir($file) && substr($file,O,1) != "."){ $m_Files[]=$file; } } closedir($handle); } if(sizeof($m_Files)>1) asort($m_Files); return $m_Files; } $files=get_Files($path); $filter_files=array_filter($files,"check_image"); $maxnr=sizeof($filter_files)-1; sort($filter_files); for ($i=0;$i<sizeof($filter_files);$i++){ echo "<a class='button' onclick=\"MediaPlayer1.SRC='$filter_files[$i]';MediaPlayer1.fileName='$filter_files[$i]';\">"; echo substr($filter_files[$i], 0, strlen($filter_files[$i])-4); echo "</a><br>"; } closedir($dir_handle); ?></table> </body></html> <?php ob_flush(); ?>

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.0100.00716.75
8.3.50.0110.00416.17
8.3.40.0070.01419.02
8.3.30.0170.00018.84
8.3.20.0040.00420.21
8.3.10.0080.00023.48
8.3.00.0040.00423.56
8.2.180.0120.00316.88
8.2.170.0100.00722.96
8.2.160.0070.00720.25
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00419.70
8.2.120.0040.00426.35
8.2.110.0090.00021.07
8.2.100.0040.00817.80
8.2.90.0030.00619.24
8.2.80.0000.00818.05
8.2.70.0000.00917.63
8.2.60.0000.00818.04
8.2.50.0050.00518.07
8.2.40.0040.00422.27
8.2.30.0040.00419.42
8.2.20.0000.00817.77
8.2.10.0050.00317.96
8.2.00.0000.00817.92
8.1.280.0070.01125.92
8.1.270.0130.00323.83
8.1.260.0060.00328.09
8.1.250.0040.00428.09
8.1.240.0140.00322.14
8.1.230.0060.00619.00
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0070.00417.23
8.1.190.0000.01017.10
8.1.180.0040.00418.10
8.1.170.0030.00518.51
8.1.160.0000.00720.68
8.1.150.0040.00418.92
8.1.140.0030.00519.61
8.1.130.0030.00317.68
8.1.120.0040.00417.29
8.1.110.0070.00017.36
8.1.100.0030.00517.44
8.1.90.0000.00917.44
8.1.80.0030.00517.30
8.1.70.0000.00717.38
8.1.60.0040.00417.51
8.1.50.0000.00917.50
8.1.40.0000.00717.52
8.1.30.0000.00817.55
8.1.20.0000.00817.57
8.1.10.0020.00517.57
8.1.00.0000.00817.48
8.0.300.0000.00918.77
8.0.290.0040.00416.88
8.0.280.0000.00718.37
8.0.270.0000.00717.34
8.0.260.0000.00717.29
8.0.250.0000.00716.99
8.0.240.0040.00417.04
8.0.230.0080.00017.06
8.0.220.0000.00716.90
8.0.210.0040.00416.81
8.0.200.0070.00017.01
8.0.190.0000.00816.87
8.0.180.0040.00416.92
8.0.170.0040.00417.01
8.0.160.0050.00316.84
8.0.150.0000.00816.79
8.0.140.0000.00716.86
8.0.130.0050.00013.40
8.0.120.0050.00714.53
8.0.110.0050.00614.48
8.0.100.0100.00114.55
8.0.90.0070.00414.59
8.0.80.0070.00914.59
8.0.70.0050.00614.55
8.0.60.0040.00714.47
8.0.50.0070.00314.51
8.0.30.0100.00615.22
8.0.20.0080.00815.82
8.0.10.0070.00414.53
8.0.00.0080.00715.45
7.4.330.0000.00516.84
7.4.320.0000.00616.53
7.4.300.0040.00416.42
7.4.290.0070.00016.63
7.4.280.0060.00316.59
7.4.270.0000.00816.56
7.4.260.0030.00316.47
7.4.250.0050.00514.30
7.4.240.0090.00214.82
7.4.230.0040.00814.28
7.4.220.0080.00714.38
7.4.210.0070.00614.92
7.4.200.0050.00514.24
7.4.190.0070.00313.38
7.4.180.0100.00313.31
7.4.160.0080.00614.42
7.4.150.0080.00514.61
7.4.140.0110.00515.51
7.4.130.0070.00714.91
7.4.120.0080.00714.89
7.4.110.0100.00414.22
7.4.100.0090.00414.38
7.4.90.0100.00714.16
7.4.80.0080.00515.18
7.4.70.0060.00614.31
7.4.60.0080.00514.14
7.4.50.0120.00014.19
7.4.40.0090.00514.26
7.4.30.0100.00614.33
7.4.20.0060.00613.21
7.4.10.0120.00013.15
7.4.00.0080.00613.79
7.3.330.0020.00213.36
7.3.320.0110.00213.21
7.3.310.0060.00514.20
7.3.300.0080.00214.28
7.3.290.0090.00214.32
7.3.280.0120.00415.10
7.3.270.0060.00914.70
7.3.260.0090.00514.41
7.3.250.0100.00815.17
7.3.240.0110.00414.80
7.3.230.0070.00614.36
7.3.220.0090.00313.21
7.3.210.0100.00414.32
7.3.200.0090.00615.18
7.3.190.0130.01214.32
7.3.180.0040.00914.29
7.3.170.0080.00514.08
7.3.160.0060.00714.29
7.3.150.0100.00313.05
7.3.140.0070.00413.14
7.3.130.0050.00613.32
7.3.120.0070.00613.57
7.3.110.0070.00713.45
7.3.100.0070.00613.80
7.3.90.0050.00713.91
7.3.80.0060.00413.73
7.3.70.0050.00613.85
7.3.60.0070.00413.91
7.3.50.0060.00313.95
7.3.40.0030.00813.90
7.3.30.0050.00713.81
7.3.20.0010.01015.47
7.3.10.0050.00415.56
7.3.00.0050.00315.52
7.2.340.0080.00413.24
7.2.330.0090.00614.22
7.2.320.0070.00714.39
7.2.310.0070.00714.33
7.2.300.0060.00714.30
7.2.290.0080.00914.38
7.2.280.0080.00513.29
7.2.270.0130.00013.29
7.2.260.0060.00813.34
7.2.250.0110.00313.20
7.2.240.0070.00813.88
7.2.230.0090.00513.82
7.2.220.0090.00313.80
7.2.210.0080.00413.82
7.2.200.0080.00514.00
7.2.190.0120.00213.87
7.2.180.0090.00413.89
7.2.170.0070.00613.90
7.2.160.0060.00713.98
7.2.150.0050.00815.67
7.2.140.0070.00615.72
7.2.130.0080.00715.89
7.2.120.0080.00715.81
7.2.110.0060.00715.70
7.2.100.0090.00415.79
7.2.90.0050.00915.61
7.2.80.0080.00715.78
7.2.70.0080.00615.76
7.2.60.0090.00615.96
7.2.50.0100.00515.70
7.2.40.0080.00615.79
7.2.30.0100.00615.73
7.2.20.0080.00715.77
7.2.10.0090.00615.75
7.2.00.0060.00616.65
7.1.330.0050.00714.66
7.1.320.0070.00714.62
7.1.310.0090.00414.78
7.1.300.0100.00214.63
7.1.290.0070.00514.67
7.1.280.0050.00614.71
7.1.270.0060.00714.74
7.1.260.0090.00314.72
7.1.250.0070.00614.72
7.1.240.0100.00114.00
7.1.230.0000.01114.14
7.1.220.0100.00114.20
7.1.210.0090.00314.17
7.1.200.0090.00314.77
7.1.190.0110.00114.21
7.1.180.0100.00114.17
7.1.170.0120.00014.05
7.1.160.0100.00214.24
7.1.150.0120.00014.18
7.1.140.0080.00514.08
7.1.130.0020.01014.09
7.1.120.0060.00514.19
7.1.110.0090.00314.13
7.1.100.0080.00415.45
7.1.90.0100.00114.11
7.1.80.0080.00414.19
7.1.70.0060.00715.01
7.1.60.0120.00515.90
7.1.50.0080.00715.08
7.1.40.0080.00414.18
7.1.30.0120.00014.24
7.1.20.0100.00314.15
7.1.10.0060.00614.18
7.1.00.0070.02616.96
7.0.330.0070.00414.06
7.0.320.0110.00114.05
7.0.310.0050.00713.97
7.0.300.0110.00014.07
7.0.290.0120.00013.98
7.0.280.0080.00314.03
7.0.270.0090.00314.03
7.0.260.0060.00613.94
7.0.250.0100.00214.30
7.0.240.0090.00314.15
7.0.230.0100.00214.16
7.0.220.0080.00414.17
7.0.210.0090.00314.17
7.0.200.0100.00115.14
7.0.190.0090.00314.13
7.0.180.0110.00114.26
7.0.170.0060.00614.19
7.0.160.0070.00414.03
7.0.150.0060.00514.09
7.0.140.0090.00314.15
7.0.130.0070.00414.17
7.0.120.0100.00314.11
7.0.110.0070.00514.13
7.0.100.0100.00114.18
7.0.90.0100.00114.00
7.0.80.0070.00513.87
7.0.70.0100.00113.94
7.0.60.0050.03216.56
7.0.50.0100.02715.25
7.0.40.0090.02916.13
7.0.30.0140.02816.21
7.0.20.0190.02616.03
7.0.10.0060.02816.08
7.0.00.0050.02016.18
5.6.400.0030.00812.79
5.6.390.0030.00912.63
5.6.380.0110.00012.93
5.6.370.0080.00412.75
5.6.360.0100.00212.88
5.6.350.0080.00312.84
5.6.340.0080.00312.82
5.6.330.0050.00612.98
5.6.320.0080.00312.79
5.6.310.0090.00312.89
5.6.300.0060.00612.61
5.6.290.0100.00212.63
5.6.280.0060.02015.60
5.6.270.0090.00212.84
5.6.260.0080.00312.79
5.6.250.0070.00412.90
5.6.240.0120.00012.97
5.6.230.0090.00312.92
5.6.220.0080.00412.89
5.6.210.0100.01715.38
5.6.200.0100.02914.70
5.6.190.0100.01615.58
5.6.180.0150.01815.52
5.6.170.0150.01615.54
5.6.160.0050.01815.54
5.6.150.0100.01914.67
5.6.140.0090.01314.65
5.6.130.0060.03014.67
5.6.120.0080.03115.65
5.6.110.0080.02515.66
5.6.100.0060.01715.62
5.6.90.0100.02915.50
5.6.80.0120.02615.37
5.6.70.0100.00112.80
5.6.60.0070.00512.93
5.6.50.0070.00512.61
5.6.40.0060.00512.77
5.6.30.0080.00312.80
5.6.20.0060.00612.68
5.6.10.0100.00212.82
5.6.00.0080.00312.68
5.5.380.0080.00412.90
5.5.370.0080.00313.08
5.5.360.0080.00412.64
5.5.350.1410.01815.35
5.5.340.0090.02614.48
5.5.330.0110.01715.28
5.5.320.0210.01915.24
5.5.310.0110.01615.35
5.5.300.0030.02414.55
5.5.290.0070.02014.55
5.5.280.0060.03115.50
5.5.270.0080.02415.49
5.5.260.0100.02715.51
5.5.250.0090.03115.41
5.5.240.0130.02815.20
5.5.230.0100.00112.66
5.5.220.0070.00412.95
5.5.210.0060.00512.95
5.5.200.0090.00312.74
5.5.190.0060.00512.82
5.5.180.0100.00212.65
5.5.170.0080.00412.64
5.5.160.0080.00312.92
5.5.150.0090.00312.76
5.5.140.0100.00212.53
5.5.130.0070.00512.53
5.5.120.0060.00512.58
5.5.110.0050.00712.65
5.5.100.0090.00312.85
5.5.90.0080.00312.79
5.5.80.0070.00512.88
5.5.70.0100.00112.82
5.5.60.0080.00412.84
5.5.50.0090.00212.76
5.5.40.0070.00412.79
5.5.30.0080.00312.67
5.5.20.0090.00212.73
5.5.10.0090.00112.58
5.5.00.0090.00212.76

preferences:
58.86 ms | 400 KiB | 5 Q