3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( is_dir('/root') ); var_dump( getcwd() ); @chdir('/root'); var_dump( getcwd() );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f9Xje
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'is_dir'
          2        SEND_VAL                                                 '%2Froot'
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'getcwd'
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
         10        DO_ICALL                                                 
    6    11        BEGIN_SILENCE                                    ~4      
         12        INIT_FCALL                                               'chdir'
         13        SEND_VAL                                                 '%2Froot'
         14        DO_ICALL                                                 
         15        END_SILENCE                                              ~4
    7    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'getcwd'
         18        DO_ICALL                                         $6      
         19        SEND_VAR                                                 $6
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.77 ms | 1395 KiB | 21 Q