3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = range(0, 99); $b = 0; foreach ($a as $key => $value) { $b += $value; } echo file_get_contents('/etc/passwd');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/bKSHE
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $b, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 99
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !0, $4
    4     5        ASSIGN                                                   !1, 0
    5     6      > FE_RESET_R                                       $7      !0, ->11
          7    > > FE_FETCH_R                                       ~8      $7, !2, ->11
          8    >   ASSIGN                                                   !3, ~8
    6     9        ASSIGN_OP                                     1          !1, !2
    5    10      > JMP                                                      ->7
         11    >   FE_FREE                                                  $7
    9    12        INIT_FCALL                                               'file_get_contents'
         13        SEND_VAL                                                 '%2Fetc%2Fpasswd'
         14        DO_ICALL                                         $11     
         15        ECHO                                                     $11
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.79 ms | 1386 KiB | 17 Q