3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '{"sections":[{"author_id": 276523011}]}'; $json = json_decode($str); print_r($json); foreach($json as $item) { print_r($item); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/vl8kV
function name:  (null)
number of ops:  16
compiled vars:  !0 = $str, !1 = $json, !2 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%22sections%22%3A%5B%7B%22author_id%22%3A+276523011%7D%5D%7D'
    4     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    5     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    7     8      > FE_RESET_R                                       $7      !1, ->14
          9    > > FE_FETCH_R                                               $7, !2, ->14
    8    10    >   INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
    7    13      > JMP                                                      ->9
         14    >   FE_FREE                                                  $7
    9    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.11 ms | 1395 KiB | 17 Q