3v4l.org

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

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

End of function test

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.39 ms | 1397 KiB | 16 Q