3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { } function a($input) { $input->bar = 'a'; } function b($input) { $input->bar = 'b'; } $stuff = new Input(); a($stuff); b($stuff); var_dump($stuff);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eQ0O9
function name:  (null)
number of ops:  13
compiled vars:  !0 = $stuff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $1      'Input'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     3        INIT_FCALL                                               'a'
          4        SEND_VAR                                                 !0
          5        DO_FCALL                                      0          
   20     6        INIT_FCALL                                               'b'
          7        SEND_VAR                                                 !0
          8        DO_FCALL                                      0          
   22     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eQ0O9
function name:  a
number of ops:  4
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        ASSIGN_OBJ                                               !0, 'bar'
          2        OP_DATA                                                  'a'
   10     3      > RETURN                                                   null

End of function a

Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eQ0O9
function name:  b
number of ops:  4
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   14     1        ASSIGN_OBJ                                               !0, 'bar'
          2        OP_DATA                                                  'b'
   15     3      > RETURN                                                   null

End of function b

Class foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.09 ms | 1397 KiB | 17 Q