3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PDO1 {}; class PdoLm extends PDO1 {}; function getPDO(): PDO1 { return new PdoLm (); } var_export(getPDO());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BhBKm
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'var_export'
          1        INIT_FCALL                                               'getpdo'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Function getpdo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BhBKm
function name:  getPDO
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $0      'PdoLm'
          1        DO_FCALL                                      0          
          2        VERIFY_RETURN_TYPE                                       $0
          3      > RETURN                                                   $0
    8     4*       VERIFY_RETURN_TYPE                                       
          5*     > RETURN                                                   null

End of function getpdo

Class PDO1: [no user functions]
Class PdoLm: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
11.72 ms | 410 KiB | 7 Q