3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A {} function test(B $b) { echo 'called'; var_dump($b); } error_reporting(E_ALL ^ E_RECOVERABLE_ERROR); set_error_handler(function () { return TRUE; }); test(new A);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OvebR
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                                   'error_reporting'
          1        SEND_VAL                                                     26623
          2        DO_ICALL                                                     
    9     3        INIT_FCALL                                                   'set_error_handler'
          4        DECLARE_LAMBDA_FUNCTION                              ~1      [0]
          5        SEND_VAL                                                     ~1
          6        DO_ICALL                                                     
   11     7        INIT_FCALL                                                   'test'
          8        NEW                                                  $3      'A'
          9        DO_FCALL                                          0          
         10        SEND_VAR                                                     $3
         11        DO_FCALL                                          0          
         12      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OvebR
function name:  {closure:/in/OvebR:9}
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                       <true>
          1*     > RETURN                                                       null

End of Dynamic Function 0

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OvebR
function name:  test
number of ops:  6
compiled vars:  !0 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV                                                 !0      
          1        ECHO                                                         'called'
          2        INIT_FCALL                                                   'var_dump'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                                     
          5      > RETURN                                                       null

End of function test

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.38 ms | 2874 KiB | 17 Q