3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PEAR { public function isError() { return true; } } $mdb2_dbx = 'abc'; if ((new PEAR)->isError($mdb2_dbx)) { // Victory! Er, I mean, Error! }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/51ctR
function name:  (null)
number of ops:  8
compiled vars:  !0 = $mdb2_dbx
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, 'abc'
   10     1        NEW                                              $2      'PEAR'
          2        DO_FCALL                                      0          
          3        INIT_METHOD_CALL                                         $2, 'isError'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $4      
          6      > JMPZ                                                     $4, ->7
   12     7    > > RETURN                                                   1

Class PEAR:
Function iserror:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/51ctR
function name:  isError
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   <true>
    6     1*     > RETURN                                                   null

End of function iserror

End of class PEAR.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.07 ms | 1393 KiB | 13 Q