3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"title":"-","first_name":"Joe","last_name":"Bloggs","role":"Senior Scientist","phone":"61240 652135","start_date":"2016-05-20","leave_date":"2016-05-20","location":null,"team":"Engineering","platform":"Rockets","username":"joe.bloggs","from_ad":"true","full_name":"Joe Bloggs","display_name":"Joe Bloggs","mobile":null,"company":"ACM WIDGETS"}'; $json_array = json_decode($json,true); foreach($json_array as $k => $v){ ${$k} = $v; } $arr = get_defined_vars(); print_r($arr);
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/Hcogs
function name:  (null)
number of ops:  20
compiled vars:  !0 = $json, !1 = $json_array, !2 = $v, !3 = $k, !4 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%22title%22%3A%22-%22%2C%22first_name%22%3A%22Joe%22%2C%22last_name%22%3A%22Bloggs%22%2C%22role%22%3A%22Senior+Scientist%22%2C%22phone%22%3A%2261240+652135%22%2C%22start_date%22%3A%222016-05-20%22%2C%22leave_date%22%3A%222016-05-20%22%2C%22location%22%3Anull%2C%22team%22%3A%22Engineering%22%2C%22platform%22%3A%22Rockets%22%2C%22username%22%3A%22joe.bloggs%22%2C%22from_ad%22%3A%22true%22%2C%22full_name%22%3A%22Joe+Bloggs%22%2C%22display_name%22%3A%22Joe+Bloggs%22%2C%22mobile%22%3Anull%2C%22company%22%3A%22ACM+WIDGETS%22%7D'
    5     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    6     6      > FE_RESET_R                                       $8      !1, ->12
          7    > > FE_FETCH_R                                       ~9      $8, !2, ->12
          8    >   ASSIGN                                                   !3, ~9
    7     9        FETCH_W                      local               $11     !3
         10        ASSIGN                                                   $11, !2
    6    11      > JMP                                                      ->7
         12    >   FE_FREE                                                  $8
    9    13        INIT_FCALL                                               'get_defined_vars'
         14        DO_ICALL                                         $13     
         15        ASSIGN                                                   !4, $13
   10    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !4
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.19 ms | 1000 KiB | 16 Q