3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Valerie { private static $instance; public static function getInstance(): self { return self::$instance ?? new self(); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c1cRD
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E > > RETURN                                                   1

Class Valerie:
Function getinstance:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c1cRD
function name:  getInstance
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   FETCH_STATIC_PROP_IS                             ~0      'instance'
          1        COALESCE                                         ~1      ~0
          2        NEW                          self                $2      
          3        DO_FCALL                                      0          
          4        QM_ASSIGN                                        ~1      $2
          5        VERIFY_RETURN_TYPE                                       ~1
          6      > RETURN                                                   ~1
   10     7*       VERIFY_RETURN_TYPE                                       
          8*     > RETURN                                                   null

End of function getinstance

End of class Valerie.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.96 ms | 998 KiB | 13 Q