3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace Random { if (!\class_exists(\Random\Randomizer::class)) { final class Randomizer { public function nextInt(): int { return 1; } } } } namespace { $randomizer = new \Random\Randomizer; \var_dump($randomizer->nextInt()); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
filename:       /in/JludD
function name:  (null)
number of ops:  13
compiled vars:  !0 = $randomizer
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   FRAMELESS_ICALL_1                class_exists        ~1      'Random%5CRandomizer'
          1        BOOL_NOT                                             ~2      ~1
          2      > JMPZ                                                         ~2, ->4
    5     3    >   DECLARE_CLASS                                                'random%5Crandomizer'
   16     4    >   NEW                                                  $3      'Random%5CRandomizer'
          5        DO_FCALL                                          0          
          6        ASSIGN                                                       !0, $3
   17     7        INIT_FCALL                                                   'var_dump'
          8        INIT_METHOD_CALL                                             !0, 'nextInt'
          9        DO_FCALL                                          0  $6      
         10        SEND_VAR                                                     $6
         11        DO_ICALL                                                     
   18    12      > RETURN                                                       1

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

End of function nextint

End of class Random\Randomizer.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
235.59 ms | 1859 KiB | 14 Q