3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php f1(); f2(); function f1(){} if(true) { function f2(){} }
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
Jump found. Position 1 = -2
Branch analysis from position: 7
filename:       /in/mXXAH
function name:  (null)
number of ops:  8
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   INIT_FCALL_BY_NAME                                       'f1'
         1        DO_FCALL                                      0          
   3     2        INIT_FCALL_BY_NAME                                       'f2'
         3        DO_FCALL                                      0          
   5     4        NOP                                                      
   7     5      > JMPZ                                                     <true>, ->7
   9     6    >   DECLARE_FUNCTION                                         '%00f2%2Fin%2FmXXAH0x7f6d68649041', 'f2'
         7    > > RETURN                                                   1

Function f1:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/mXXAH
function name:  f1
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   5     0  E > > RETURN                                                   null

End of function f1

Function %00f2%2Fin%2FmXXAH0x7f6d68649041:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/mXXAH
function name:  f2
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   9     0  E > > RETURN                                                   null

End of function %00f2%2Fin%2FmXXAH0x7f6d68649041

Generated using Vulcan Logic Dumper, using php 7.3.0