3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new class{}; $methods = get_class_methods('class@anonymous'); var_dump($methods);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l26u1
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a, !1 = $methods
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_ANON_CLASS                               <true>  
          1        NEW                                              $3      $2
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'get_class_methods'
          5        SEND_VAL                                                 'class%40anonymous'
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !1, $6
    5     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Class class@anonymous: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.25 ms | 1385 KiB | 17 Q