3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DummyPDO { public function prepare(string $query): void { echo $query; } } function yourFunctionThatUsesTheDatabase(DummyPDO $conn): void { $conn->prepare("SELECT ..."); } $conn = new DummyPDO(); yourFunctionThatUsesTheDatabase($conn);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1NYd6
function name:  (null)
number of ops:  7
compiled vars:  !0 = $conn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'DummyPDO'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_FCALL                                               'yourfunctionthatusesthedatabase'
          4        SEND_VAR                                                 !0
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function yourfunctionthatusesthedatabase:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1NYd6
function name:  yourFunctionThatUsesTheDatabase
number of ops:  5
compiled vars:  !0 = $conn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   12     1        INIT_METHOD_CALL                                         !0, 'prepare'
          2        SEND_VAL_EX                                              'SELECT+...'
          3        DO_FCALL                                      0          
   13     4      > RETURN                                                   null

End of function yourfunctionthatusesthedatabase

Class DummyPDO:
Function prepare:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1NYd6
function name:  prepare
number of ops:  3
compiled vars:  !0 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1        ECHO                                                     !0
    7     2      > RETURN                                                   null

End of function prepare

End of class DummyPDO.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
126.15 ms | 1401 KiB | 14 Q