3v4l.org

run code in 300+ PHP versions simultaneously
<?php function __construct(?array $config = null, \mysqli $connection = null) { if ($connection !== null && !($connection instanceof \mysqli)) { throw new \InvalidArgumentException( "Invalid mysqli connection object passed. Instance of 'mysqli' expected, '" . gettype($connection) . "' given." ); } } __construct(null, "bogus");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ukkMu
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               '__construct'
          1        SEND_VAL                                                 null
          2        SEND_VAL                                                 'bogus'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function __construct:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/ukkMu
function name:  __construct
number of ops:  16
compiled vars:  !0 = $config, !1 = $connection
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      null
          1        RECV_INIT                                        !1      null
    5     2        TYPE_CHECK                                  1020  ~2      !1
          3      > JMPZ_EX                                          ~2      ~2, ->7
          4    >   INSTANCEOF                                       ~3      !1, 'mysqli'
          5        BOOL_NOT                                         ~4      ~3
          6        BOOL                                             ~2      ~4
          7    > > JMPZ                                                     ~2, ->15
    7     8    >   NEW                                              $5      'InvalidArgumentException'
    8     9        GET_TYPE                                         ~6      !1
         10        CONCAT                                           ~7      'Invalid+mysqli+connection+object+passed.+Instance+of+%27mysqli%27+expected%2C+%27', ~6
         11        CONCAT                                           ~8      ~7, '%27+given.'
         12        SEND_VAL_EX                                              ~8
    7    13        DO_FCALL                                      0          
    8    14      > THROW                                         0          $5
   11    15    > > RETURN                                                   null

End of function __construct

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.42 ms | 1000 KiB | 14 Q