3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ( ! class_exists('ReflectionClass') || ! class_exists('Closure')) { die('cannot test, no reflection or closure'); } $cls = new ReflectionClass('Closure'); var_dump($cls->getMethods());
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/WARBv
function name:  (null)
number of ops:  22
compiled vars:  !0 = $cls
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'class_exists'
          1        SEND_VAL                                                 'ReflectionClass'
          2        DO_ICALL                                         $1      
          3        BOOL_NOT                                         ~2      $1
          4      > JMPNZ_EX                                         ~2      ~2, ->10
    4     5    >   INIT_FCALL                                               'class_exists'
          6        SEND_VAL                                                 'Closure'
          7        DO_ICALL                                         $3      
          8        BOOL_NOT                                         ~4      $3
          9        BOOL                                             ~2      ~4
         10    > > JMPZ                                                     ~2, ->12
    5    11    > > EXIT                                                     'cannot+test%2C+no+reflection+or+closure'
    8    12    >   NEW                                              $5      'ReflectionClass'
         13        SEND_VAL_EX                                              'Closure'
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !0, $5
   10    16        INIT_FCALL                                               'var_dump'
         17        INIT_METHOD_CALL                                         !0, 'getMethods'
         18        DO_FCALL                                      0  $8      
         19        SEND_VAR                                                 $8
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.79 ms | 1395 KiB | 17 Q