3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.5 ms | 1395 KiB | 15 Q