3v4l.org

run code in 300+ PHP versions simultaneously
<?php mkdir(sys_get_temp_dir() . '/foo/bar', 0777, true); mkdir(sys_get_temp_dir() . '/src/Dir', 0777, true); file_put_contents(sys_get_temp_dir() . '/src/Dir/Test.php', '<?php echo "Included\n";'); include sys_get_temp_dir() . '/src/Dir/Test.php'; include_once sys_get_temp_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/b9pod
function name:  (null)
number of ops:  32
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mkdir'
          1        INIT_FCALL                                               'sys_get_temp_dir'
          2        DO_ICALL                                         $0      
          3        CONCAT                                           ~1      $0, '%2Ffoo%2Fbar'
          4        SEND_VAL                                                 ~1
          5        SEND_VAL                                                 511
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'mkdir'
          9        INIT_FCALL                                               'sys_get_temp_dir'
         10        DO_ICALL                                         $3      
         11        CONCAT                                           ~4      $3, '%2Fsrc%2FDir'
         12        SEND_VAL                                                 ~4
         13        SEND_VAL                                                 511
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                                 
    6    16        INIT_FCALL                                               'file_put_contents'
         17        INIT_FCALL                                               'sys_get_temp_dir'
         18        DO_ICALL                                         $6      
         19        CONCAT                                           ~7      $6, '%2Fsrc%2FDir%2FTest.php'
         20        SEND_VAL                                                 ~7
         21        SEND_VAL                                                 '%3C%3Fphp+echo+%22Included%5Cn%22%3B'
         22        DO_ICALL                                                 
    8    23        INIT_FCALL                                               'sys_get_temp_dir'
         24        DO_ICALL                                         $9      
         25        CONCAT                                           ~10     $9, '%2Fsrc%2FDir%2FTest.php'
         26        INCLUDE_OR_EVAL                                          ~10, INCLUDE
    9    27        INIT_FCALL                                               'sys_get_temp_dir'
         28        DO_ICALL                                         $12     
         29        CONCAT                                           ~13     $12, '%2Ffoo%2Fbar%2F..%2F..%2Fsrc%2FDir%2Ftest.php'
         30        INCLUDE_OR_EVAL                                          ~13, INCLUDE_ONCE
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
205.17 ms | 1388 KiB | 19 Q