3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Flextype { protected static $instance = null; public static function instance() { //return !isset(self::$instance) and self::$instance = new Flextype(); if (is_null(Flextype::$instance)) { Flextype::$instance = new self; } return Flextype::$instance; } } var_export(Flextype::instance());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AOKK4
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   18     0  E >   INIT_FCALL                                                   'var_export'
          1        INIT_STATIC_METHOD_CALL                                      'Flextype', 'instance'
          2        DO_FCALL                                          0  $0      
          3        SEND_VAR                                                     $0
          4        DO_ICALL                                                     
          5      > RETURN                                                       1

Class Flextype:
Function instance:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/AOKK4
function name:  instance
number of ops:  10
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   FETCH_STATIC_PROP_R              unknown             ~0      'instance'
          1        TYPE_CHECK                                        2          ~0
          2      > JMPZ                                                         ~1, ->7
   12     3    >   NEW                              self                $3      
          4        DO_FCALL                                          0          
          5        ASSIGN_STATIC_PROP                                           'instance', 'Flextype'
          6        OP_DATA                                                      $3
   14     7    >   FETCH_STATIC_PROP_R              unknown             ~5      'instance'
          8      > RETURN                                                       ~5
   15     9*     > RETURN                                                       null

End of function instance

End of class Flextype.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.64 ms | 2019 KiB | 14 Q