3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.39 ms | 1384 KiB | 13 Q