3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = 1; $data = 0; switch ($key) { case 1 : $data++;break; case 2 : $data--;break; case 3 : $data--;break; default : $data=0;break; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
filename:       /in/ekqJs
function name:  (null)
number of ops:  18
compiled vars:  !0 = $key, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        ASSIGN                                                   !1, 0
    6     2        IS_EQUAL                                                 !0, 1
          3      > JMPNZ                                                    ~4, ->9
    7     4    >   IS_EQUAL                                                 !0, 2
          5      > JMPNZ                                                    ~4, ->11
    8     6    >   IS_EQUAL                                                 !0, 3
          7      > JMPNZ                                                    ~4, ->13
          8    > > JMP                                                      ->15
    6     9    >   PRE_INC                                                  !1
         10      > JMP                                                      ->17
    7    11    >   PRE_DEC                                                  !1
         12      > JMP                                                      ->17
    8    13    >   PRE_DEC                                                  !1
         14      > JMP                                                      ->17
    9    15    >   ASSIGN                                                   !1, 0
         16      > JMP                                                      ->17
   10    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.66 ms | 1385 KiB | 13 Q