3v4l.org

run code in 300+ PHP versions simultaneously
<?php function t() { var_dump('foo'); } if (!function_exists('t')) { function t() { var_dump('bar'); } }
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/aRCe4
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'function_exists'
          1        SEND_VAL                                                 't'
          2        DO_ICALL                                         $0      
          3        BOOL_NOT                                         ~1      $0
          4      > JMPZ                                                     ~1, ->6
    4     5    >   DECLARE_FUNCTION                                         't'
    5     6    > > RETURN                                                   1

Function t:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aRCe4
function name:  t
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'foo'
          2        DO_ICALL                                                 
          3      > RETURN                                                   null

End of function t

Function %00t%2Fin%2FaRCe4%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aRCe4
function name:  t
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'bar'
          2        DO_ICALL                                                 
          3      > RETURN                                                   null

End of function %00t%2Fin%2FaRCe4%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.17 ms | 1395 KiB | 17 Q