3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { } $b=new A; function aaa($obj) { $obj->ret=6; } var_dump($b->ret); aaa($b); var_dump($b->ret);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V6mES
function name:  (null)
number of ops:  15
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   23     3        INIT_FCALL                                               'var_dump'
          4        FETCH_OBJ_R                                      ~4      !0, 'ret'
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                                 
   24     7        INIT_FCALL                                               'aaa'
          8        SEND_VAR                                                 !0
          9        DO_FCALL                                      0          
   25    10        INIT_FCALL                                               'var_dump'
         11        FETCH_OBJ_R                                      ~7      !0, 'ret'
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Function aaa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V6mES
function name:  aaa
number of ops:  4
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   17     1        ASSIGN_OBJ                                               !0, 'ret'
          2        OP_DATA                                                  6
   18     3      > RETURN                                                   null

End of function aaa

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.74 ms | 1397 KiB | 16 Q