3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = json_decode(' { "statusCode": 200, "message": "Data Received", "0": { "id": "385", "fname": "arriet ", "lname": "ephania ", "email": "amym@mator.com", "mob": "9877" }, "1": { "id": "386", "fname": "Kelly ", "lname": "Echo ", "email": "sacen@mailinator.com", "mob": "1111" } } ', true); foreach ($arr as $key => $value) { var_dump(intval($key) === $key); if(intval($key) == $key){ //print_r($value); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 17
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 17
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 16
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 16
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/jtIfW
function name:  (null)
number of ops:  19
compiled vars:  !0 = $arr, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%0A++++%7B%0A++++%22statusCode%22%3A+200%2C%0A++++%22message%22%3A+%22Data+Received%22%2C%0A++++%220%22%3A+%7B%0A++++++++%22id%22%3A+%22385%22%2C%0A++++++++%22fname%22%3A+%22arriet+%22%2C%0A++++++++%22lname%22%3A+%22ephania+%22%2C%0A++++++++%22email%22%3A+%22amym%40mator.com%22%2C%0A++++++++%22mob%22%3A+%229877%22%0A++++%7D%2C%0A++++%221%22%3A+%7B%0A++++++++%22id%22%3A+%22386%22%2C%0A++++++++%22fname%22%3A+%22Kelly+%22%2C%0A++++++++%22lname%22%3A+%22Echo+%22%2C%0A++++++++%22email%22%3A+%22sacen%40mailinator.com%22%2C%0A++++++++%22mob%22%3A+%221111%22%0A++++%7D%0A%0A+%7D%0A++++'
   22     2        SEND_VAL                                                 <true>
    2     3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
   23     5      > FE_RESET_R                                       $5      !0, ->17
          6    > > FE_FETCH_R                                       ~6      $5, !1, ->17
          7    >   ASSIGN                                                   !2, ~6
   24     8        INIT_FCALL                                               'var_dump'
          9        CAST                                          4  ~8      !2
         10        IS_IDENTICAL                                     ~9      !2, ~8
         11        SEND_VAL                                                 ~9
         12        DO_ICALL                                                 
   25    13        CAST                                          4  ~11     !2
         14        IS_EQUAL                                                 !2, ~11
         15      > JMPZ                                                     ~12, ->16
   23    16    > > JMP                                                      ->6
         17    >   FE_FREE                                                  $5
   28    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.99 ms | 1001 KiB | 15 Q