3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.24 ms | 1393 KiB | 13 Q