3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { } var_dump( get_class(new class implements Foo {}), get_class(new class implements Foo {}) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s6fm1
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
    8     1        DECLARE_ANON_CLASS                               <object> 
          2        NEW                                              $1      $0
          3        DO_FCALL                                      0          
          4        GET_CLASS                                        ~3      $1
          5        SEND_VAL                                                 ~3
    9     6        DECLARE_ANON_CLASS                               <resource>  
          7        NEW                                              $5      $4
          8        DO_FCALL                                      0          
          9        GET_CLASS                                        ~7      $5
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                                 
   10    12      > RETURN                                                   1

Class Foo: [no user functions]
Class Foo@anonymous: [no user functions]
Class Foo@anonymous: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.91 ms | 1394 KiB | 15 Q