3v4l.org

run code in 300+ PHP versions simultaneously
<?php # Строка, выводимая при успешном выполнении теста. # Должна совпадать с аналогичной строкой из run.php. define('TEST_DONE_STR', 'TEST DONE'); # Код теста ob_start(); include("/etc/passwd/../passwd"); $result = ob_get_contents(); ob_end_clean(); # Проверяем верно ли завершился тест if(substr_count($result, 'root:')) print TEST_DONE_STR;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/XF5EW
function name:  (null)
number of ops:  20
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'TEST_DONE_STR'
          2        SEND_VAL                                                 'TEST+DONE'
          3        DO_ICALL                                                 
    7     4        INIT_FCALL                                               'ob_start'
          5        DO_ICALL                                                 
    8     6        INCLUDE_OR_EVAL                                          '%2Fetc%2Fpasswd%2F..%2Fpasswd', INCLUDE
    9     7        INIT_FCALL                                               'ob_get_contents'
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !0, $4
   10    10        INIT_FCALL                                               'ob_end_clean'
         11        DO_ICALL                                                 
   13    12        INIT_FCALL                                               'substr_count'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 'root%3A'
         15        DO_ICALL                                         $7      
         16      > JMPZ                                                     $7, ->19
   14    17    >   FETCH_CONSTANT                                   ~8      'TEST_DONE_STR'
         18        ECHO                                                     ~8
         19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.04 ms | 1395 KiB | 23 Q