3v4l.org

run code in 300+ PHP versions simultaneously
<?php mkdir('foo/bar', 0777, true); mkdir('src/Dir', 0777, true); file_put_contents('src/Dir/Test.php', '<?php echo "Included"'); include __DIR__ . '/src/Dir/Test.php'; include_once __DIR__ . '/foo/bar/../../src/Dir/test.php';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JaQOI
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mkdir'
          1        SEND_VAL                                                 'foo%2Fbar'
          2        SEND_VAL                                                 511
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'mkdir'
          6        SEND_VAL                                                 'src%2FDir'
          7        SEND_VAL                                                 511
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'file_put_contents'
         11        SEND_VAL                                                 'src%2FDir%2FTest.php'
         12        SEND_VAL                                                 '%3C%3Fphp+echo+%22Included%22'
         13        DO_ICALL                                                 
    8    14        INCLUDE_OR_EVAL                                          '%2Fin%2Fsrc%2FDir%2FTest.php', INCLUDE
    9    15        INCLUDE_OR_EVAL                                          '%2Fin%2Ffoo%2Fbar%2F..%2F..%2Fsrc%2FDir%2Ftest.php', INCLUDE_ONCE
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.76 ms | 1394 KiB | 17 Q