3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.86 ms | 944 KiB | 14 Q