3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo Module::work('hello world'), "\n"; abstract class Module { public static function work($it) { $module = 'self'; return $module::strtoupper($it); } private static function strtoupper($it) { return strtoupper($it); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5J8WH
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_STATIC_METHOD_CALL                                  'Module', 'work'
          1        SEND_VAL_EX                                              'hello+world'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4        ECHO                                                     '%0A'
   15     5      > RETURN                                                   1

Class Module:
Function work:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5J8WH
function name:  work
number of ops:  8
compiled vars:  !0 = $it, !1 = $module
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        ASSIGN                                                   !1, 'self'
    8     2        FETCH_CLASS                                   0  $3      !1
          3        INIT_STATIC_METHOD_CALL                                  $3, 'strtoupper'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $4      
          6      > RETURN                                                   $4
    9     7*     > RETURN                                                   null

End of function work

Function strtoupper:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5J8WH
function name:  strtoupper
number of ops:  6
compiled vars:  !0 = $it
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   12     1        INIT_FCALL                                               'strtoupper'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4      > RETURN                                                   $1
   13     5*     > RETURN                                                   null

End of function strtoupper

End of class Module.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.83 ms | 1395 KiB | 15 Q