3v4l.org

run code in 300+ PHP versions simultaneously
<?php function saySomething() { echo 'hi!'; return true; } if (false && saySomething()) { echo 'statement evaluated to true'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 2
Branch analysis from position: 1
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
filename:       /in/mnX2j
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E > > JMPZ                                                     <false>, ->2
   11     1    >   ECHO                                                     'statement+evaluated+to+true'
   12     2    > > RETURN                                                   1

Function saysomething:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mnX2j
function name:  saySomething
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'hi%21'
    6     1      > RETURN                                                   <true>
    7     2*     > RETURN                                                   null

End of function saysomething

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.14 ms | 1397 KiB | 13 Q