3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
151.01 ms | 2713 KiB | 11 Q