3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo_bar() { $phrase = "hello world"; $string = ""; if (0 == 0) { $string .= <<<EOF <b>{$phrase}</b> EOF; if (0 == 0) { $string .= <<<EOF <i> of mine</i> EOF; } /* comment out to see the error $string .= <<<EOF <u> - the END</u> EOF; */ } return $string; } foo_bar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NkrEl
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   INIT_FCALL                                               'foo_bar'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function foo_bar:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
Branch analysis from position: 9
filename:       /in/NkrEl
function name:  foo_bar
number of ops:  11
compiled vars:  !0 = $phrase, !1 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'hello+world'
    5     1        ASSIGN                                                   !1, ''
    7     2      > JMPZ                                                     <true>, ->9
    9     3    >   ROPE_INIT                                     3  ~5      '++++++++%3Cb%3E'
          4        ROPE_ADD                                      1  ~5      ~5, !0
          5        ROPE_END                                      2  ~4      ~5, '%3C%2Fb%3E'
          6        ASSIGN_OP                                     8          !1, ~4
   11     7      > JMPZ                                                     <true>, ->9
   13     8    >   ASSIGN_OP                                     8          !1, '++++++++++++%3Ci%3E+of+mine%3C%2Fi%3E'
   23     9    > > RETURN                                                   !1
   24    10*     > RETURN                                                   null

End of function foo_bar

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.39 ms | 1397 KiB | 14 Q