3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { function x() { echo "HELLO "; return true; } function y() { echo "GOOD BYE "; return true; } } $a = new foo; if ($a->x() || $a->y()) { echo " :)"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
Branch analysis from position: 9
filename:       /in/AnnCX
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_METHOD_CALL                                         !0, 'x'
          4        DO_FCALL                                      0  $4      
          5      > JMPNZ_EX                                         ~5      $4, ->9
          6    >   INIT_METHOD_CALL                                         !0, 'y'
          7        DO_FCALL                                      0  $6      
          8        BOOL                                             ~5      $6
          9    > > JMPZ                                                     ~5, ->11
   18    10    >   ECHO                                                     '+%3A%29'
   19    11    > > RETURN                                                   1

Class foo:
Function x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AnnCX
function name:  x
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'HELLO+'
    5     1      > RETURN                                                   <true>
    6     2*     > RETURN                                                   null

End of function x

Function y:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AnnCX
function name:  y
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'GOOD+BYE+'
   10     1      > RETURN                                                   <true>
   11     2*     > RETURN                                                   null

End of function y

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.61 ms | 1394 KiB | 13 Q