3v4l.org

run code in 300+ PHP versions simultaneously
<?php $module = 'Module'; 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/gQGWS
function name:  (null)
number of ops:  8
compiled vars:  !0 = $module
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Module'
    3     1        FETCH_CLASS                                   0  $2      !0
          2        INIT_STATIC_METHOD_CALL                                  $2, 'work'
          3        SEND_VAL_EX                                              'hello+world'
          4        DO_FCALL                                      0  $3      
          5        ECHO                                                     $3
          6        ECHO                                                     '%0A'
   15     7      > RETURN                                                   1

Class Module:
Function work:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gQGWS
function name:  work
number of ops:  8
compiled vars:  !0 = $it, !1 = $module
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        ASSIGN                                                   !1, 'self'
    9     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
   10     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/gQGWS
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:
153.29 ms | 1387 KiB | 15 Q