3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait NoEsNada { public function nothing() { echo 'hola'; } } class Pablo { use NoEsNada; } function nada(NoEsNada $x) { $x->nothing(); } $pablo = new Pablo(); nada($pablo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DU1DG
function name:  (null)
number of ops:  8
compiled vars:  !0 = $pablo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   DECLARE_CLASS                                            'pablo'
   24     1        NEW                                              $1      'Pablo'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   25     4        INIT_FCALL                                               'nada'
          5        SEND_VAR                                                 !0
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Function nada:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DU1DG
function name:  nada
number of ops:  4
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
   18     1        INIT_METHOD_CALL                                         !0, 'nothing'
          2        DO_FCALL                                      0          
   19     3      > RETURN                                                   null

End of function nada

Class NoEsNada:
Function nothing:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DU1DG
function name:  nothing
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'hola'
    8     1      > RETURN                                                   null

End of function nothing

End of class NoEsNada.

Class Pablo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.72 ms | 1397 KiB | 14 Q