3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; class PDO extends \PDO { public function getDriverName() { return parent::getAttribute(\PDO::ATTR_DRIVER_NAME); } } $pdo = new PDO('foo');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8F4nf
function name:  (null)
number of ops:  5
compiled vars:  !0 = $pdo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'Foo%5CPDO'
          1        SEND_VAL_EX                                              'foo'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
          4      > RETURN                                                   1

Class Foo\PDO:
Function getdrivername:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8F4nf
function name:  getDriverName
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_STATIC_METHOD_CALL                                  'getAttribute'
          1        SEND_VAL_EX                                              16
          2        DO_FCALL                                      0  $0      
          3      > RETURN                                                   $0
    9     4*     > RETURN                                                   null

End of function getdrivername

End of class Foo\PDO.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.63 ms | 1393 KiB | 13 Q