3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo Module::work('hello world'), "\n"; echo call_user_func('Module::work', 'hello world'); abstract class Module { public static function work($it) { return strtoupper($it); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jkK7G
function name:  (null)
number of ops:  10
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'
    3     5        INIT_USER_CALL                                1          'call_user_func', 'Module%3A%3Awork'
          6        SEND_USER                                                'hello+world'
          7        DO_FCALL                                      0  $1      
          8        ECHO                                                     $1
   10     9      > RETURN                                                   1

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

End of function work

End of class Module.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.58 ms | 1395 KiB | 15 Q