3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Foo {} $x = new ReflectionClass('Foo'); var_dump($x->isInstantiable()); $i = $x->newInstance();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SJNka
function name:  (null)
number of ops:  13
compiled vars:  !0 = $x, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $2      'ReflectionClass'
          1        SEND_VAL_EX                                              'Foo'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    7     4        INIT_FCALL                                               'var_dump'
          5        INIT_METHOD_CALL                                         !0, 'isInstantiable'
          6        DO_FCALL                                      0  $5      
          7        SEND_VAR                                                 $5
          8        DO_ICALL                                                 
   10     9        INIT_METHOD_CALL                                         !0, 'newInstance'
         10        DO_FCALL                                      0  $7      
         11        ASSIGN                                                   !1, $7
         12      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.28 ms | 1385 KiB | 15 Q