3v4l.org

run code in 300+ PHP versions simultaneously
<?php $response = '[{"link":"google.com"},{"link":"facebook.com"},{"link":"instagram.com"}]'; $array = json_decode($response,true); foreach($array as $key=>$value){ echo $value['link'].PHP_EOL; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/dElvA
function name:  (null)
number of ops:  15
compiled vars:  !0 = $response, !1 = $array, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%5B%7B%22link%22%3A%22google.com%22%7D%2C%7B%22link%22%3A%22facebook.com%22%7D%2C%7B%22link%22%3A%22instagram.com%22%7D%5D'
    3     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    4     6      > FE_RESET_R                                       $7      !1, ->13
          7    > > FE_FETCH_R                                       ~8      $7, !2, ->13
          8    >   ASSIGN                                                   !3, ~8
    5     9        FETCH_DIM_R                                      ~10     !2, 'link'
         10        CONCAT                                           ~11     ~10, '%0A'
         11        ECHO                                                     ~11
    4    12      > JMP                                                      ->7
         13    >   FE_FREE                                                  $7
    7    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.29 ms | 944 KiB | 14 Q