3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_include_path('.'); chdir('/tmp'); $fp = fopen(basename(__FILE__), 'r', true); var_dump($fp);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UjXXo
function name:  (null)
number of ops:  19
compiled vars:  !0 = $fp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'set_include_path'
          1        SEND_VAL                                                 '.'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'chdir'
          4        SEND_VAL                                                 '%2Ftmp'
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'fopen'
          7        INIT_FCALL                                               'basename'
          8        SEND_VAL                                                 '%2Fin%2FUjXXo'
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        SEND_VAL                                                 'r'
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $4      
         14        ASSIGN                                                   !0, $4
    6    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.96 ms | 1429 KiB | 18 Q