3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"a":1,"b":2,"c":3,"d":4,"e":5}'; $assoc = true; $result = json_decode ($json, $assoc); foreach($result as $line) echo $line; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/5UOcP
function name:  (null)
number of ops:  13
compiled vars:  !0 = $json, !1 = $assoc, !2 = $result, !3 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%22a%22%3A1%2C%22b%22%3A2%2C%22c%22%3A3%2C%22d%22%3A4%2C%22e%22%3A5%7D'
    3     1        ASSIGN                                                   !1, <true>
    4     2        INIT_FCALL                                               'json_decode'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !2, $6
    5     7      > FE_RESET_R                                       $8      !2, ->11
          8    > > FE_FETCH_R                                               $8, !3, ->11
    6     9    >   ECHO                                                     !3
    5    10      > JMP                                                      ->8
         11    >   FE_FREE                                                  $8
    7    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.9 ms | 1394 KiB | 15 Q