3v4l.org

run code in 300+ PHP versions simultaneously
<?php $answer = 42; switch ( $answer ) { case 56: echo 'Foo'; // fall through default: echo 'Bar'; break; case 42: echo 'Baz'; // fall through case 999: echo '!'; }
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 = 11
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 = 9
Branch analysis from position: 9
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: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
filename:       /in/An6qs
function name:  (null)
number of ops:  14
compiled vars:  !0 = $answer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 42
    5     1        IS_EQUAL                                                 !0, 56
          2      > JMPNZ                                                    ~2, ->8
   11     3    >   IS_EQUAL                                                 !0, 42
          4      > JMPNZ                                                    ~2, ->11
   14     5    >   IS_EQUAL                                                 !0, 999
          6      > JMPNZ                                                    ~2, ->12
          7    > > JMP                                                      ->9
    6     8    >   ECHO                                                     'Foo'
    9     9    >   ECHO                                                     'Bar'
   10    10      > JMP                                                      ->13
   12    11    >   ECHO                                                     'Baz'
   15    12    >   ECHO                                                     '%21'
   16    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.63 ms | 1393 KiB | 13 Q