3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( is_dir('/root') ); var_dump( getcwd() ); var_dump( chdir('/root') ); var_dump( getcwd() );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mpZAM
function name:  (null)
number of ops:  23
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        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'chdir'
         13        SEND_VAL                                                 '%2Froot'
         14        DO_ICALL                                         $4      
         15        SEND_VAR                                                 $4
         16        DO_ICALL                                                 
    7    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'getcwd'
         19        DO_ICALL                                         $6      
         20        SEND_VAR                                                 $6
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.91 ms | 1395 KiB | 21 Q