3v4l.org

run code in 300+ PHP versions simultaneously
<?php // prints e.g. 'Current PHP version: 4.1.1' //echo 'Current PHP version: ' . phpversion(); $a = (array)json_decode('{"a2" : {[]: []}}'); var_dump(is_array($a["a2"])); var_dump(array_search("ctf",$a["a2"])); foreach($a["a2"] as $key=>$val){ $val==="ctf"?die("nope"):NULL; } echo "AYEAHFDSFDSAH"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 20, Position 2 = 30
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 30
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 27
Branch analysis from position: 24
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/W6p9g
function name:  (null)
number of ops:  33
compiled vars:  !0 = $a, !1 = $val, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%7B%22a2%22+%3A+%7B%5B%5D%3A+%5B%5D%7D%7D'
          2        DO_ICALL                                         $3      
          3        CAST                                          7  ~4      $3
          4        ASSIGN                                                   !0, ~4
    5     5        INIT_FCALL                                               'var_dump'
          6        FETCH_DIM_R                                      ~6      !0, 'a2'
          7        TYPE_CHECK                                  128  ~7      ~6
          8        SEND_VAL                                                 ~7
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'array_search'
         12        SEND_VAL                                                 'ctf'
         13        FETCH_DIM_R                                      ~9      !0, 'a2'
         14        SEND_VAL                                                 ~9
         15        DO_ICALL                                         $10     
         16        SEND_VAR                                                 $10
         17        DO_ICALL                                                 
    7    18        FETCH_DIM_R                                      ~12     !0, 'a2'
         19      > FE_RESET_R                                       $13     ~12, ->30
         20    > > FE_FETCH_R                                       ~14     $13, !1, ->30
         21    >   ASSIGN                                                   !2, ~14
    8    22        IS_IDENTICAL                                             !1, 'ctf'
         23      > JMPZ                                                     ~16, ->27
         24    > > EXIT                                                     'nope'
         25*       QM_ASSIGN                                        ~17     <true>
         26*       JMP                                                      ->28
         27    >   QM_ASSIGN                                        ~17     null
         28        FREE                                                     ~17
    7    29      > JMP                                                      ->20
         30    >   FE_FREE                                                  $13
   10    31        ECHO                                                     'AYEAHFDSFDSAH'
   11    32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.03 ms | 1388 KiB | 19 Q