3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Mario { private $name = 'foo'; public function doIt($var) { echo $var; return $this; } } $mario = new Mario(); $mario->doIt();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j5otU
function name:  (null)
number of ops:  6
compiled vars:  !0 = $mario
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'Mario'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   14     3        INIT_METHOD_CALL                                         !0, 'doIt'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Mario:
Function doit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j5otU
function name:  doIt
number of ops:  5
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        ECHO                                                     !0
    9     2        FETCH_THIS                                       ~1      
          3      > RETURN                                                   ~1
   10     4*     > RETURN                                                   null

End of function doit

End of class Mario.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.02 ms | 1397 KiB | 13 Q