3v4l.org

run code in 300+ PHP versions simultaneously
<?php function makeDir($path) { return is_dir($path) || mkdir($path); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/72S0i
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   1

Function makedir:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/72S0i
function name:  makeDir
number of ops:  11
compiled vars:  !0 = $path
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'is_dir'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4      > JMPNZ_EX                                         ~2      $1, ->9
          5    >   INIT_FCALL                                               'mkdir'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        BOOL                                             ~2      $3
          9    > > RETURN                                                   ~2
    6    10*     > RETURN                                                   null

End of function makedir

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.17 ms | 1394 KiB | 17 Q