3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PDOx extends PDO { public function query(...$args) { if (count($args) !== 2) { return parent::query(...$args); } if (is_object($args[1])) { $args[1] = (array)$args[1]; } if (!is_array($args[1])) { return parent::query($args[0], $args[1]); } $stmt = self::prepare($args[0]); $stmt->execute($args[1]); return $stmt; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2Na69
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E > > RETURN                                                   1

Class PDOx:
Function query:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 29
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/2Na69
function name:  query
number of ops:  42
compiled vars:  !0 = $args, !1 = $stmt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV_VARIADIC                                    !0      
    7     1        COUNT                                            ~2      !0
          2        IS_NOT_IDENTICAL                                         ~2, 2
          3      > JMPZ                                                     ~3, ->9
    8     4    >   INIT_STATIC_METHOD_CALL                                  'query'
          5        SEND_UNPACK                                              !0
          6        CHECK_UNDEF_ARGS                                         
          7        DO_FCALL                                      1  $4      
          8      > RETURN                                                   $4
   11     9    >   FETCH_DIM_R                                      ~5      !0, 1
         10        TYPE_CHECK                                  256          ~5
         11      > JMPZ                                                     ~6, ->16
   12    12    >   FETCH_DIM_R                                      ~8      !0, 1
         13        CAST                                          7  ~9      ~8
         14        ASSIGN_DIM                                               !0, 1
         15        OP_DATA                                                  ~9
   14    16    >   FETCH_DIM_R                                      ~10     !0, 1
         17        TYPE_CHECK                                  128  ~11     ~10
         18        BOOL_NOT                                         ~12     ~11
         19      > JMPZ                                                     ~12, ->29
   15    20    >   INIT_STATIC_METHOD_CALL                                  'query'
         21        CHECK_FUNC_ARG                                           
         22        FETCH_DIM_FUNC_ARG                               $13     !0, 0
         23        SEND_FUNC_ARG                                            $13
         24        CHECK_FUNC_ARG                                           
         25        FETCH_DIM_FUNC_ARG                               $14     !0, 1
         26        SEND_FUNC_ARG                                            $14
         27        DO_FCALL                                      0  $15     
         28      > RETURN                                                   $15
   18    29    >   INIT_STATIC_METHOD_CALL                                  'prepare'
         30        CHECK_FUNC_ARG                                           
         31        FETCH_DIM_FUNC_ARG                               $16     !0, 0
         32        SEND_FUNC_ARG                                            $16
         33        DO_FCALL                                      0  $17     
         34        ASSIGN                                                   !1, $17
   19    35        INIT_METHOD_CALL                                         !1, 'execute'
         36        CHECK_FUNC_ARG                                           
         37        FETCH_DIM_FUNC_ARG                               $19     !0, 1
         38        SEND_FUNC_ARG                                            $19
         39        DO_FCALL                                      0          
   21    40      > RETURN                                                   !1
   22    41*     > RETURN                                                   null

End of function query

End of class PDOx.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.81 ms | 1399 KiB | 13 Q