3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} class B extends A {} $b = new B(); echo get_parent_class($b); get_class('Character'); $name = 'Character'; $arguments = array(); $reflect = new \ReflectionClass($name); print_r($reflect); print_r($name); print_r($arguments); $o = $reflect->newInstanceArgs($arguments);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mSgQA
function name:  (null)
number of ops:  29
compiled vars:  !0 = $b, !1 = $name, !2 = $arguments, !3 = $reflect, !4 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $5      'B'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $5
    8     3        INIT_FCALL                                               'get_parent_class'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $8      
          6        ECHO                                                     $8
   10     7        GET_CLASS                                        ~9      'Character'
          8        FREE                                                     ~9
   12     9        ASSIGN                                                   !1, 'Character'
   13    10        ASSIGN                                                   !2, <array>
   15    11        NEW                                              $12     'ReflectionClass'
         12        SEND_VAR_EX                                              !1
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !3, $12
   16    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                                 
   17    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                                 
   18    21        INIT_FCALL                                               'print_r'
         22        SEND_VAR                                                 !2
         23        DO_ICALL                                                 
   20    24        INIT_METHOD_CALL                                         !3, 'newInstanceArgs'
         25        SEND_VAR_EX                                              !2
         26        DO_FCALL                                      0  $18     
         27        ASSIGN                                                   !4, $18
         28      > RETURN                                                   1

Class A: [no user functions]
Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.17 ms | 1387 KiB | 17 Q