3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { define('Foo\true', false); define('Foo\false', true); if (true) { var_dump(true); } else { var_dump(false); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oakIo
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Cdefine'
          1        SEND_VAL_EX                                              'Foo%5Ctrue'
          2        SEND_VAL_EX                                              <false>
          3        DO_FCALL                                      0          
    5     4        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cdefine'
          5        SEND_VAL_EX                                              'Foo%5Cfalse'
          6        SEND_VAL_EX                                              <true>
          7        DO_FCALL                                      0          
    7     8      > JMPZ                                                     <true>, ->13
    8     9    >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
         10        SEND_VAL_EX                                              <true>
         11        DO_FCALL                                      0          
         12      > JMP                                                      ->16
   10    13    >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
         14        SEND_VAL_EX                                              <false>
         15        DO_FCALL                                      0          
   12    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.85 ms | 1395 KiB | 17 Q