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 = 11
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 11
filename:       /in/XjarO
function name:  (null)
number of ops:  14
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, ->11
          7    >   INIT_METHOD_CALL                                         !0, 'y'
          8        DO_FCALL                                      0  $6      
          9        BOOL_NOT                                         ~7      $6
         10        BOOL                                             ~5      ~7
         11    > > JMPZ                                                     ~5, ->13
   18    12    >   ECHO                                                     '+%3A%29'
   19    13    > > RETURN                                                   1

Class foo:
Function x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XjarO
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/XjarO
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:
141.94 ms | 1395 KiB | 13 Q