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"; $f = fopen($tmp=tempnam($td, md5(date(Ymds))), "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 = 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/ngGDc
function name:  (null)
number of ops:  45
compiled vars:  !0 = $phpv, !1 = $td, !2 = $f, !3 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'function_exists'
          1        SEND_VAL                                                 'phpversion'
          2        DO_ICALL                                         $4      
          3      > JMPZ                                                     $4, ->8
    4     4    >   INIT_FCALL                                               'phpversion'
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !0, $5
          7      > JMP                                                      ->9
    6     8    >   ASSIGN                                                   !0, '8.0.0'
    8     9    >   IS_SMALLER_OR_EQUAL                                      '5.2.1', !0
         10      > JMPZ                                                     ~8, ->15
    9    11    >   INIT_FCALL                                               'sys_get_temp_dir'
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !1, $9
         14      > JMP                                                      ->16
   11    15    >   ASSIGN                                                   !1, '%2Ftmp'
   13    16    >   INIT_FCALL                                               'fopen'
         17        INIT_FCALL                                               'tempnam'
         18        SEND_VAR                                                 !1
         19        INIT_FCALL                                               'md5'
         20        INIT_FCALL                                               'date'
         21        FETCH_CONSTANT                                   ~12     'Ymds'
         22        SEND_VAL                                                 ~12
         23        DO_ICALL                                         $13     
         24        SEND_VAR                                                 $13
         25        DO_ICALL                                         $14     
         26        SEND_VAR                                                 $14
         27        DO_ICALL                                         $15     
         28        ASSIGN                                           ~16     !3, $15
         29        SEND_VAL                                                 ~16
         30        SEND_VAL                                                 'w'
         31        DO_ICALL                                         $17     
         32        ASSIGN                                                   !2, $17
   14    33        INIT_FCALL                                               'fwrite'
         34        SEND_VAR                                                 !2
         35        SEND_VAL                                                 '%3C%3Fphp+eval%28base64_decode%28%22ZWNobyAncmFkaSA6RCc7%22%29%29%3B'
         36        DO_ICALL                                                 
   15    37        INIT_FCALL                                               'fclose'
         38        SEND_VAR                                                 !2
         39        DO_ICALL                                                 
   16    40        INCLUDE_OR_EVAL                                          !3, INCLUDE
   17    41        INIT_FCALL                                               'unlink'
         42        SEND_VAR                                                 !3
         43        DO_ICALL                                                 
         44      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.69 ms | 1405 KiB | 33 Q