3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(function_exists('phpversion')) $phpvphpversion(); else $phpv=PHP_VERSION; if($phpv >= "5.2.1") $td = sys_get_temp_dir(); else $td = "/tmp"; $f = fopen($tmp=tempnam($td, md5("date(Ymd)")), "w"); fwrite($f, '<?php '.chr(101).chr(118).chr(97).chr(108).'('.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).'("ZWNobyAncmFkaSA6RCc7"));'); fclose($f); include($tmp); unlink($tmp);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
Branch analysis from position: 14
filename:       /in/uNGXG
function name:  (null)
number of ops:  40
compiled vars:  !0 = $phpvphpversion, !1 = $phpv, !2 = $td, !3 = $f, !4 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'function_exists'
          1        SEND_VAL                                                 'phpversion'
          2        DO_ICALL                                         $5      
          3      > JMPZ                                                     $5, ->7
    4     4    >   INIT_DYNAMIC_CALL                                        !0
          5        DO_FCALL                                      0          
          6      > JMP                                                      ->8
    6     7    >   ASSIGN                                                   !1, '8.0.0'
    8     8    >   IS_SMALLER_OR_EQUAL                                      '5.2.1', !1
          9      > JMPZ                                                     ~8, ->14
    9    10    >   INIT_FCALL                                               'sys_get_temp_dir'
         11        DO_ICALL                                         $9      
         12        ASSIGN                                                   !2, $9
         13      > JMP                                                      ->15
   11    14    >   ASSIGN                                                   !2, '%2Ftmp'
   13    15    >   INIT_FCALL                                               'fopen'
         16        INIT_FCALL                                               'tempnam'
         17        SEND_VAR                                                 !2
         18        INIT_FCALL                                               'md5'
         19        SEND_VAL                                                 'date%28Ymd%29'
         20        DO_ICALL                                         $12     
         21        SEND_VAR                                                 $12
         22        DO_ICALL                                         $13     
         23        ASSIGN                                           ~14     !4, $13
         24        SEND_VAL                                                 ~14
         25        SEND_VAL                                                 'w'
         26        DO_ICALL                                         $15     
         27        ASSIGN                                                   !3, $15
   14    28        INIT_FCALL                                               'fwrite'
         29        SEND_VAR                                                 !3
         30        SEND_VAL                                                 '%3C%3Fphp+eval%28base64_decode%28%22ZWNobyAncmFkaSA6RCc7%22%29%29%3B'
         31        DO_ICALL                                                 
   15    32        INIT_FCALL                                               'fclose'
         33        SEND_VAR                                                 !3
         34        DO_ICALL                                                 
   16    35        INCLUDE_OR_EVAL                                          !4, INCLUDE
   17    36        INIT_FCALL                                               'unlink'
         37        SEND_VAR                                                 !4
         38        DO_ICALL                                                 
         39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.45 ms | 1400 KiB | 29 Q