3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(&$array) { $key = 'foo'; return isset($array[$key]); } $array = array( 'foo' => NULL, ); echo (string) test($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FCrjq
function name:  (null)
number of ops:  7
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, <array>
   12     1        INIT_FCALL                                               'test'
          2        SEND_REF                                                 !0
          3        DO_FCALL                                      0  $2      
          4        CAST                                          6  ~3      $2
          5        ECHO                                                     ~3
          6      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FCrjq
function name:  test
number of ops:  5
compiled vars:  !0 = $array, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ASSIGN                                                   !1, 'foo'
    5     2        ISSET_ISEMPTY_DIM_OBJ                         0  ~3      !0, !1
          3      > RETURN                                                   ~3
    6     4*     > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.7 ms | 1397 KiB | 14 Q