3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { } class B extends A { } var_dump((A) (new B()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rpA4o
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_CONSTANT                                   ~0      'A'
          2        INIT_DYNAMIC_CALL                                        ~0
          3        NEW                                              $1      'B'
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $1
          6        DO_FCALL                                      0  $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.81 ms | 1398 KiB | 15 Q