3v4l.org

run code in 300+ PHP versions simultaneously
<?php const FOO = 1; $a = '1'; switch (true) { case $a === FOO: echo '$a === FOO'; break; case $a == FOO: echo '$a == FOO'; break; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
filename:       /in/qPauK
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'FOO', 1
    4     1        ASSIGN                                                   !0, '1'
    7     2        FETCH_CONSTANT                                   ~3      'FOO'
          3        IS_IDENTICAL                                             !0, ~3
          4      > JMPNZ                                                    ~4, ->9
   10     5    >   FETCH_CONSTANT                                   ~5      'FOO'
          6        IS_EQUAL                                                 !0, ~5
          7      > JMPNZ                                                    ~6, ->11
          8    > > JMP                                                      ->13
    8     9    >   ECHO                                                     '%24a+%3D%3D%3D+FOO'
    9    10      > JMP                                                      ->13
   11    11    >   ECHO                                                     '%24a+%3D%3D+FOO'
   12    12      > JMP                                                      ->13
   13    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.74 ms | 1441 KiB | 13 Q