3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(change('shmest', change('test', create()))); function create() { return ['type' => 'smth', 'property' => 'smth too']; } function &change($prop, &$obj) { $obj['property'] = $prop; return $obj; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bM6q3
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL_BY_NAME                                       'change'
          2        SEND_VAL_EX                                              'shmest'
          3        INIT_FCALL_BY_NAME                                       'change'
          4        SEND_VAL_EX                                              'test'
          5        INIT_FCALL_BY_NAME                                       'create'
          6        DO_FCALL                                      0  $0      
          7        SEND_VAR_NO_REF_EX                                       $0
          8        DO_FCALL                                      0  $1      
          9        SEND_VAR_NO_REF_EX                                       $1
         10        DO_FCALL                                      0  $2      
         11        SEND_VAR                                                 $2
         12        DO_ICALL                                                 
   12    13      > RETURN                                                   1

Function create:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bM6q3
function name:  create
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   <array>
    7     1*     > RETURN                                                   null

End of function create

Function change:
Finding entry points
Branch analysis from position: 0
Return found
filename:       /in/bM6q3
function name:  change
number of ops:  6
compiled vars:  !0 = $prop, !1 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2        ASSIGN_DIM                                               !1, 'property'
          3        OP_DATA                                                  !0
   11     4      > RETURN_BY_REF                                            !1
   12     5*     > RETURN_BY_REF                                            null

End of function change

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.15 ms | 1395 KiB | 15 Q