3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = <<<'EOT' "{ "John": { "status":"Wait" }, "Jennifer": { "status":"Active" }, "James": { "status":"Active", "age":56, "count":10, "progress":0.0029857, "bad":0 } }" EOT; foreach ($json as $key => $val) { if(is_array($val)) { echo "$key:\n"; } else { echo "$key => $val\n"; } } //echo $json;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 16
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/nqFS7
function name:  (null)
number of ops:  18
compiled vars:  !0 = $json, !1 = $val, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '++++%22%7B%0A++++%09%22John%22%3A+%7B%0A+++++%09+++%22status%22%3A%22Wait%22%0A++++%09%7D%2C%0A++++%09%22Jennifer%22%3A+%7B%0A++++%09++++%22status%22%3A%22Active%22%0A++++%09%7D%2C%0A++++%09%22James%22%3A+%7B%0A+++++%09+++%22status%22%3A%22Active%22%2C%0A++++++++%09%22age%22%3A56%2C%0A++++++++%09%22count%22%3A10%2C%0A++++++++%09%22progress%22%3A0.0029857%2C%0A++++++++%09%22bad%22%3A0%0A+++%09%09%7D%0A%09%7D%22'
   21     1      > FE_RESET_R                                       $4      !0, ->16
          2    > > FE_FETCH_R                                       ~5      $4, !1, ->16
          3    >   ASSIGN                                                   !2, ~5
   22     4        TYPE_CHECK                                  128          !1
          5      > JMPZ                                                     ~7, ->10
   23     6    >   NOP                                                      
          7        FAST_CONCAT                                      ~8      !2, '%3A%0A'
          8        ECHO                                                     ~8
          9      > JMP                                                      ->15
   25    10    >   ROPE_INIT                                     4  ~10     !2
         11        ROPE_ADD                                      1  ~10     ~10, '+%3D%3E+'
         12        ROPE_ADD                                      2  ~10     ~10, !1
         13        ROPE_END                                      3  ~9      ~10, '%0A'
         14        ECHO                                                     ~9
   21    15    > > JMP                                                      ->2
         16    >   FE_FREE                                                  $4
   29    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.15 ms | 1394 KiB | 13 Q