3v4l.org

run code in 300+ PHP versions simultaneously
<?php class phpdbg { public function isGreat($greeting = null) { printf( "%s: %s\n", __METHOD__, $greeting); return $this; } } $dbg = new phpdbg(); var_dump($dbg->isGreat("PHP Rocks !!")); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ioIMl
function name:  (null)
number of ops:  10
compiled vars:  !0 = $dbg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'phpdbg'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   12     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !0, 'isGreat'
          5        SEND_VAL_EX                                              'PHP+Rocks+%21%21'
          6        DO_FCALL                                      0  $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
   13     9      > RETURN                                                   1

Class phpdbg:
Function isgreat:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ioIMl
function name:  isGreat
number of ops:  9
compiled vars:  !0 = $greeting
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      null
    4     1        INIT_FCALL                                               'printf'
    5     2        SEND_VAL                                                 '%25s%3A+%25s%0A'
          3        SEND_VAL                                                 'phpdbg%3A%3AisGreat'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
    6     6        FETCH_THIS                                       ~2      
          7      > RETURN                                                   ~2
    7     8*     > RETURN                                                   null

End of function isgreat

End of class phpdbg.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.34 ms | 1395 KiB | 17 Q