3v4l.org

run code in 300+ PHP versions simultaneously
<?php function outer() { if (!function_exists('inner')){ function inner($echoval) { echo $echoval; } } } outer(); inner("First Run\r\n"); outer(); inner('Second Run');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/32Upi
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'outer'
          1        DO_FCALL                                      0          
   11     2        INIT_FCALL_BY_NAME                                       'inner'
          3        SEND_VAL_EX                                              'First+Run%0D%0A'
          4        DO_FCALL                                      0          
   12     5        INIT_FCALL                                               'outer'
          6        DO_FCALL                                      0          
   13     7        INIT_FCALL_BY_NAME                                       'inner'
          8        SEND_VAL_EX                                              'Second+Run'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function outer:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/32Upi
function name:  outer
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'function_exists'
          1        SEND_VAL                                                 'inner'
          2        DO_ICALL                                         $0      
          3        BOOL_NOT                                         ~1      $0
          4      > JMPZ                                                     ~1, ->6
    5     5    >   DECLARE_FUNCTION                                         'inner'
    9     6    > > RETURN                                                   null

End of function outer

Function %00inner%2Fin%2F32Upi%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/32Upi
function name:  inner
number of ops:  3
compiled vars:  !0 = $echoval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ECHO                                                     !0
    7     2      > RETURN                                                   null

End of function %00inner%2Fin%2F32Upi%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.76 ms | 1399 KiB | 17 Q