3v4l.org

run code in 300+ PHP versions simultaneously
<?php function modifyObj($obj) { $obj->a = 'Hello world'; $obj->b = 'Something new'; } $obj = new StdClass(); $obj->a = 'Hello'; modifyObj($obj); var_dump($obj);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZEPjs
function name:  (null)
number of ops:  12
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'StdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    9     3        ASSIGN_OBJ                                               !0, 'a'
          4        OP_DATA                                                  'Hello'
   11     5        INIT_FCALL                                               'modifyobj'
          6        SEND_VAR                                                 !0
          7        DO_FCALL                                      0          
   13     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Function modifyobj:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZEPjs
function name:  modifyObj
number of ops:  6
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ASSIGN_OBJ                                               !0, 'a'
          2        OP_DATA                                                  'Hello+world'
    5     3        ASSIGN_OBJ                                               !0, 'b'
          4        OP_DATA                                                  'Something+new'
    6     5      > RETURN                                                   null

End of function modifyobj

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.81 ms | 1397 KiB | 16 Q