3v4l.org

run code in 300+ PHP versions simultaneously
<?php const FOO = 1; $a = '1'; switch (45) { case 1: echo '$a === FOO'; break; case 2: echo '$a == FOO'; break; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
filename:       /in/FNeuR
function name:  (null)
number of ops:  12
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        IS_EQUAL                                                 45, 1
          3      > JMPNZ                                                    ~2, ->7
   10     4    >   IS_EQUAL                                                 45, 2
          5      > JMPNZ                                                    ~2, ->9
          6    > > JMP                                                      ->11
    8     7    >   ECHO                                                     '%24a+%3D%3D%3D+FOO'
    9     8      > JMP                                                      ->11
   11     9    >   ECHO                                                     '%24a+%3D%3D+FOO'
   12    10      > JMP                                                      ->11
   13    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.34 ms | 1006 KiB | 13 Q