3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { function x() { echo "GOOD BYE "; return true; } function y() { echo "HELLO"; return $this->x(); } } $a = new foo; if (!$a->x() || $a->y()) { echo " :)"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
Branch analysis from position: 10
filename:       /in/K2rLa
function name:  (null)
number of ops:  13
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        BOOL_NOT                                         ~5      $4
          6      > JMPNZ_EX                                         ~5      ~5, ->10
          7    >   INIT_METHOD_CALL                                         !0, 'y'
          8        DO_FCALL                                      0  $6      
          9        BOOL                                             ~5      $6
         10    > > JMPZ                                                     ~5, ->12
   18    11    >   ECHO                                                     '+%3A%29'
   19    12    > > RETURN                                                   1

Class foo:
Function x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K2rLa
function name:  x
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'GOOD+BYE+'
    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/K2rLa
function name:  y
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'HELLO'
   10     1        INIT_METHOD_CALL                                         'x'
          2        DO_FCALL                                      0  $0      
          3      > RETURN                                                   $0
   11     4*     > RETURN                                                   null

End of function y

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.11 ms | 1395 KiB | 13 Q