3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class File { } abstract class DataFile extends File {} class jordi extends DataFile{ public $naam='jordi'; } function a(File $f) { return $f; } print_r(a(new jordi)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jpmQ9
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'print_r'
          1        INIT_FCALL                                               'a'
          2        NEW                                              $0      'jordi'
          3        DO_FCALL                                      0          
          4        SEND_VAR                                                 $0
          5        DO_FCALL                                      0  $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
   18     8      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jpmQ9
function name:  a
number of ops:  3
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   13     1      > RETURN                                                   !0
   14     2*     > RETURN                                                   null

End of function a

Class File: [no user functions]
Class DataFile: [no user functions]
Class jordi: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.57 ms | 1397 KiB | 16 Q