3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.39 ms | 1393 KiB | 13 Q