3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pg = (file_get_contents("pets_articles/Pets/".$_GET['page'])); if(strpos($pg,'Body:')!==false) {$ii=strpos($pg,'Body:')+5;$hor = substr($pg, $ii);} else {$hor=$pg;} $hor = str_replace("\n", "<br>", $hor); echo $hor; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 25
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P9fdJ
function name:  (null)
number of ops:  34
compiled vars:  !0 = $pg, !1 = $ii, !2 = $hor
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'file_get_contents'
          1        FETCH_R                      global              ~3      '_GET'
          2        FETCH_DIM_R                                      ~4      ~3, 'page'
          3        CONCAT                                           ~5      'pets_articles%2FPets%2F', ~4
          4        SEND_VAL                                                 ~5
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !0, $6
    3     7        INIT_FCALL                                               'strpos'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 'Body%3A'
         10        DO_ICALL                                         $8      
         11        TYPE_CHECK                                  1018          $8
         12      > JMPZ                                                     ~9, ->25
    4    13    >   INIT_FCALL                                               'strpos'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 'Body%3A'
         16        DO_ICALL                                         $10     
         17        ADD                                              ~11     $10, 5
         18        ASSIGN                                                   !1, ~11
         19        INIT_FCALL                                               'substr'
         20        SEND_VAR                                                 !0
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $13     
         23        ASSIGN                                                   !2, $13
         24      > JMP                                                      ->26
    6    25    >   ASSIGN                                                   !2, !0
    7    26    >   INIT_FCALL                                               'str_replace'
         27        SEND_VAL                                                 '%0A'
         28        SEND_VAL                                                 '%3Cbr%3E'
         29        SEND_VAR                                                 !2
         30        DO_ICALL                                         $16     
         31        ASSIGN                                                   !2, $16
    8    32        ECHO                                                     !2
    9    33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.83 ms | 1396 KiB | 21 Q