3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_array = '[{"server_name": "Test Server 1", "server_ip": "192.168.1.2", "server_hostname": "testserver1.example.com"},{"server_name": "Test Server 2", "server_ip": "192.169.1.105", "server_hostname": "testserver2.example.com"}]'; $server_array = json_decode($server_array, true); foreach($server_array as $value) { foreach($value as $item) { echo <<<HEREDOC $item; HEREDOC; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 17
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 17
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 15
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/fkTr3
function name:  (null)
number of ops:  19
compiled vars:  !0 = $server_array, !1 = $value, !2 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%5B%7B%22server_name%22%3A+%22Test+Server+1%22%2C+%22server_ip%22%3A+%22192.168.1.2%22%2C+%22server_hostname%22%3A+%22testserver1.example.com%22%7D%2C%7B%22server_name%22%3A+%22Test+Server+2%22%2C+%22server_ip%22%3A+%22192.169.1.105%22%2C+%22server_hostname%22%3A+%22testserver2.example.com%22%7D%5D'
    3     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !0, $4
    5     6      > FE_RESET_R                                       $6      !0, ->17
          7    > > FE_FETCH_R                                               $6, !1, ->17
    6     8    > > FE_RESET_R                                       $7      !1, ->15
          9    > > FE_FETCH_R                                               $7, !2, ->15
    8    10    >   ROPE_INIT                                     3  ~9      '++++++++++++'
         11        ROPE_ADD                                      1  ~9      ~9, !2
         12        ROPE_END                                      2  ~8      ~9, '%3B'
         13        ECHO                                                     ~8
    6    14      > JMP                                                      ->9
         15    >   FE_FREE                                                  $7
    5    16      > JMP                                                      ->7
         17    >   FE_FREE                                                  $6
   11    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.62 ms | 1010 KiB | 14 Q