3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(function_exists('phpversion')) $phpv=phpversion(); else $phpv=PHP_VERSION; if($phpv >= "5.2.1") $td = sys_get_temp_dir(); else $td = "/tmp"; $t1=$td.'/sess_'.md5(date("YmdH")); $t2=$td.'/sess_'.md5(date("YmdHs")); $t3=$td.'/sess_'.md5(date("YmdHsi")); $cntnt="ZWNobyAncmFkaSA6RCc7"; $b=chr(98).chr(97).chr(115).chr(101).chr(54).chr(52).chr(95).chr(100).chr(101).chr(99).chr(111).chr(100).chr(101); $hp=chr(60).chr(63).chr(112).chr(104).chr(112); $f=fopen($t1,"w"); fwrite($f, $hp.' $g=fopen("' . $t2 . '","w"); fwrite($g,"'.$hp.'"\' $h=fopen("' . $t3 . '","w"); fwrite($h,"<?php " . ' . $b . '("'.$cntnt.'") . ";"); fclose($h);\' ); fclose($g); ' ); fclose($f); include($t1); unlink($t1); include($t2); unlink($t2); include($t3); unlink($t3);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
Branch analysis from position: 15
filename:       /in/cPSUp
function name:  (null)
number of ops:  82
compiled vars:  !0 = $phpv, !1 = $td, !2 = $t1, !3 = $t2, !4 = $t3, !5 = $cntnt, !6 = $b, !7 = $hp, !8 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'function_exists'
          1        SEND_VAL                                                 'phpversion'
          2        DO_ICALL                                         $9      
          3      > JMPZ                                                     $9, ->8
    4     4    >   INIT_FCALL                                               'phpversion'
          5        DO_ICALL                                         $10     
          6        ASSIGN                                                   !0, $10
          7      > JMP                                                      ->9
    6     8    >   ASSIGN                                                   !0, '8.0.0'
    8     9    >   IS_SMALLER_OR_EQUAL                                      '5.2.1', !0
         10      > JMPZ                                                     ~13, ->15
    9    11    >   INIT_FCALL                                               'sys_get_temp_dir'
         12        DO_ICALL                                         $14     
         13        ASSIGN                                                   !1, $14
         14      > JMP                                                      ->16
   11    15    >   ASSIGN                                                   !1, '%2Ftmp'
   13    16    >   CONCAT                                           ~17     !1, '%2Fsess_'
         17        INIT_FCALL                                               'md5'
         18        INIT_FCALL                                               'date'
         19        SEND_VAL                                                 'YmdH'
         20        DO_ICALL                                         $18     
         21        SEND_VAR                                                 $18
         22        DO_ICALL                                         $19     
         23        CONCAT                                           ~20     ~17, $19
         24        ASSIGN                                                   !2, ~20
   14    25        CONCAT                                           ~22     !1, '%2Fsess_'
         26        INIT_FCALL                                               'md5'
         27        INIT_FCALL                                               'date'
         28        SEND_VAL                                                 'YmdHs'
         29        DO_ICALL                                         $23     
         30        SEND_VAR                                                 $23
         31        DO_ICALL                                         $24     
         32        CONCAT                                           ~25     ~22, $24
         33        ASSIGN                                                   !3, ~25
   15    34        CONCAT                                           ~27     !1, '%2Fsess_'
         35        INIT_FCALL                                               'md5'
         36        INIT_FCALL                                               'date'
         37        SEND_VAL                                                 'YmdHsi'
         38        DO_ICALL                                         $28     
         39        SEND_VAR                                                 $28
         40        DO_ICALL                                         $29     
         41        CONCAT                                           ~30     ~27, $29
         42        ASSIGN                                                   !4, ~30
   16    43        ASSIGN                                                   !5, 'ZWNobyAncmFkaSA6RCc7'
   18    44        ASSIGN                                                   !6, 'base64_decode'
   20    45        ASSIGN                                                   !7, '%3C%3Fphp'
   22    46        INIT_FCALL                                               'fopen'
         47        SEND_VAR                                                 !2
         48        SEND_VAL                                                 'w'
         49        DO_ICALL                                         $35     
         50        ASSIGN                                                   !8, $35
   23    51        INIT_FCALL                                               'fwrite'
         52        SEND_VAR                                                 !8
   24    53        CONCAT                                           ~37     !7, '%0A+++++%24g%3Dfopen%28%22'
   25    54        CONCAT                                           ~38     ~37, !3
         55        CONCAT                                           ~39     ~38, '%22%2C%22w%22%29%3B%0A+++++fwrite%28%24g%2C%22'
   26    56        CONCAT                                           ~40     ~39, !7
         57        CONCAT                                           ~41     ~40, '%22%27%0A+++++++++++%24h%3Dfopen%28%22'
   27    58        CONCAT                                           ~42     ~41, !4
         59        CONCAT                                           ~43     ~42, '%22%2C%22w%22%29%3B%0A+++++++++++fwrite%28%24h%2C%22%3C%3Fphp+%22+.+'
   28    60        CONCAT                                           ~44     ~43, !6
         61        CONCAT                                           ~45     ~44, '%28%22'
         62        CONCAT                                           ~46     ~45, !5
         63        CONCAT                                           ~47     ~46, '%22%29+.+%22%3B%22%29%3B%0A+++++++++++fclose%28%24h%29%3B%27+%0A+++%29%3B%0A+++++fclose%28%24g%29%3B%0A'
         64        SEND_VAL                                                 ~47
         65        DO_ICALL                                                 
   34    66        INIT_FCALL                                               'fclose'
         67        SEND_VAR                                                 !8
         68        DO_ICALL                                                 
   35    69        INCLUDE_OR_EVAL                                          !2, INCLUDE
   36    70        INIT_FCALL                                               'unlink'
         71        SEND_VAR                                                 !2
         72        DO_ICALL                                                 
   37    73        INCLUDE_OR_EVAL                                          !3, INCLUDE
   38    74        INIT_FCALL                                               'unlink'
         75        SEND_VAR                                                 !3
         76        DO_ICALL                                                 
   39    77        INCLUDE_OR_EVAL                                          !4, INCLUDE
   40    78        INIT_FCALL                                               'unlink'
         79        SEND_VAR                                                 !4
         80        DO_ICALL                                                 
         81      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.93 ms | 1405 KiB | 31 Q