3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (true) { function foo() { echo "php"; } } else { function foo() { echo " sucks"; } } foo(); if (true) { function bar() { echo "php"; } } else { function bar() { echo " sucks"; } } bar();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 3
Branch analysis from position: 1
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
Branch analysis from position: 9
filename:       /in/amlWB
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > JMPZ                                                     <true>, ->3
          1    >   DECLARE_FUNCTION                                         'foo'
          2      > JMP                                                      ->4
    4     3    >   DECLARE_FUNCTION                                         'foo'
    6     4    >   INIT_FCALL_BY_NAME                                       'foo'
          5        DO_FCALL                                      0          
    8     6      > JMPZ                                                     <true>, ->9
    9     7    >   DECLARE_FUNCTION                                         'bar'
          8      > JMP                                                      ->10
   11     9    >   DECLARE_FUNCTION                                         'bar'
   14    10    >   INIT_FCALL_BY_NAME                                       'bar'
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Function %00foo%2Fin%2FamlWB%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/amlWB
function name:  foo
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'php'
          1      > RETURN                                                   null

End of function %00foo%2Fin%2FamlWB%3A3%240

Function %00foo%2Fin%2FamlWB%3A4%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/amlWB
function name:  foo
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     '+sucks'
          1      > RETURN                                                   null

End of function %00foo%2Fin%2FamlWB%3A4%241

Function %00bar%2Fin%2FamlWB%3A9%242:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/amlWB
function name:  bar
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'php'
          1      > RETURN                                                   null

End of function %00bar%2Fin%2FamlWB%3A9%242

Function %00bar%2Fin%2FamlWB%3A11%243:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/amlWB
function name:  bar
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     '+sucks'
          1      > RETURN                                                   null

End of function %00bar%2Fin%2FamlWB%3A11%243

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.28 ms | 1403 KiB | 13 Q