3v4l.org

run code in 300+ PHP versions simultaneously
<?php Interface Singleton{public static function instance();} echo class_exists('Singleton'); if (class_exists('Singleton')) { $reason = 'class already exists'; } else { }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/d5HvC
function name:  (null)
number of ops:  11
compiled vars:  !0 = $reason
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'class_exists'
          1        SEND_VAL                                                 'Singleton'
          2        DO_ICALL                                         $1      
          3        ECHO                                                     $1
    5     4        INIT_FCALL                                               'class_exists'
          5        SEND_VAL                                                 'Singleton'
          6        DO_ICALL                                         $2      
          7      > JMPZ                                                     $2, ->10
    6     8    >   ASSIGN                                                   !0, 'class+already+exists'
          9      > JMP                                                      ->10
    9    10    > > RETURN                                                   1

Class Singleton:
Function instance:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d5HvC
function name:  instance
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   null

End of function instance

End of class Singleton.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.71 ms | 1395 KiB | 15 Q