3v4l.org

run code in 300+ PHP versions simultaneously
<?php $valueOfTrue = 0; // this was coming from config in real-world. $valueOfFalse = 1; // Same here. ^ define('TRUE', $valueOfTrue); define('FALSE', $valueOfFalse); var_dump(TRUE, FALSE); // Happy debugging... if (TRUE) { echo 'yay'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/UhMGX
function name:  (null)
number of ops:  17
compiled vars:  !0 = $valueOfTrue, !1 = $valueOfFalse
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        ASSIGN                                                   !1, 1
    5     2        INIT_FCALL                                               'define'
          3        SEND_VAL                                                 'TRUE'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
    6     6        INIT_FCALL                                               'define'
          7        SEND_VAL                                                 'FALSE'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    8    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAL                                                 <true>
         12        SEND_VAL                                                 <false>
         13        DO_ICALL                                                 
   10    14      > JMPZ                                                     <true>, ->16
   11    15    >   ECHO                                                     'yay'
   12    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.32 ms | 1394 KiB | 17 Q