3v4l.org

run code in 300+ PHP versions simultaneously
<?php mkdir($dir = '/tmp/a/b/c', 0777, true); print is_dir($dir) ? 'yes' : 'no';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XlZqo
function name:  (null)
number of ops:  15
compiled vars:  !0 = $dir
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mkdir'
          1        ASSIGN                                           ~1      !0, '%2Ftmp%2Fa%2Fb%2Fc'
          2        SEND_VAL                                                 ~1
          3        SEND_VAL                                                 511
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'is_dir'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9      > JMPZ                                                     $3, ->12
         10    >   QM_ASSIGN                                        ~4      'yes'
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~4      'no'
         13    >   ECHO                                                     ~4
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.1 ms | 1000 KiB | 15 Q