3v4l.org

run code in 300+ PHP versions simultaneously
<?php function buy() { return true; } function pay() { echo "Yes Please"; } function nothanks() { echo "No Thanks"; } if (buy() === false) { pay(); } else { nothanks(); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X468P
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                               'buy'
          1        DO_FCALL                                      0  $0      
          2        TYPE_CHECK                                    4          $0
          3      > JMPZ                                                     ~1, ->7
   18     4    >   INIT_FCALL                                               'pay'
          5        DO_FCALL                                      0          
          6      > JMP                                                      ->9
   20     7    >   INIT_FCALL                                               'nothanks'
          8        DO_FCALL                                      0          
   21     9    > > RETURN                                                   1

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

End of function buy

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

End of function pay

Function nothanks:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X468P
function name:  nothanks
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ECHO                                                     'No+Thanks'
   15     1      > RETURN                                                   null

End of function nothanks

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.04 ms | 1399 KiB | 16 Q