3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A {} function a($b = null, A $a) {} Reflection::export(new ReflectionFunction('a')); function b(A $a, $b = null) {} Reflection::export(new ReflectionFunction('b'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yt2JN
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   INIT_STATIC_METHOD_CALL                                      'Reflection', 'export'
          1        NEW                                                  $0      'ReflectionFunction'
          2        SEND_VAL_EX                                                  'a'
          3        DO_FCALL                                          0          
          4        SEND_VAR_NO_REF_EX                                           $0
          5        DO_FCALL                                          0          
   10     6        INIT_STATIC_METHOD_CALL                                      'Reflection', 'export'
          7        NEW                                                  $3      'ReflectionFunction'
          8        SEND_VAL_EX                                                  'b'
          9        DO_FCALL                                          0          
         10        SEND_VAR_NO_REF_EX                                           $3
         11        DO_FCALL                                          0          
         12      > RETURN                                                       1

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

End of function a

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

End of function b

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
152.11 ms | 1807 KiB | 8 Q