3v4l.org

run code in 300+ PHP versions simultaneously
<?php use Namespaced\UnknownClass; function test(UndefinedClass $foo, UnknownClass $bar) {} $param = new ReflectionParameter('test', 'foo'); $param2 = new ReflectionParameter('test', 'bar'); var_dump((string) $param); var_dump((string) $param2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/98cDa
function name:  (null)
number of ops:  19
compiled vars:  !0 = $param, !1 = $param2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $2      'ReflectionParameter'
          1        SEND_VAL_EX                                              'test'
          2        SEND_VAL_EX                                              'foo'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
    8     5        NEW                                              $5      'ReflectionParameter'
          6        SEND_VAL_EX                                              'test'
          7        SEND_VAL_EX                                              'bar'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $5
   10    10        INIT_FCALL                                               'var_dump'
         11        CAST                                          6  ~8      !0
         12        SEND_VAL                                                 ~8
         13        DO_ICALL                                                 
   11    14        INIT_FCALL                                               'var_dump'
         15        CAST                                          6  ~10     !1
         16        SEND_VAL                                                 ~10
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

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

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.95 ms | 1400 KiB | 15 Q