3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Model { public static function sayHello() { echo 'hello'; } } $className = "Model"; if (class_exists($className)) { $className::sayHello(); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/ufCrm
function name:  (null)
number of ops:  7
compiled vars:  !0 = $className
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                       !0, 'Model'
   12     1        FRAMELESS_ICALL_1                class_exists        ~2      !0
          2      > JMPZ                                                         ~2, ->6
   13     3    >   FETCH_CLASS                                       0  $3      !0
          4        INIT_STATIC_METHOD_CALL                                      $3, 'sayHello'
          5        DO_FCALL                                          0          
   14     6    > > RETURN                                                       1

Class Model:
Function sayhello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ufCrm
function name:  sayHello
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                         'hello'
    8     1      > RETURN                                                       null

End of function sayhello

End of class Model.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.52 ms | 2069 KiB | 13 Q