3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); switch($_GET['a']) { case "lol" : echo "haha"; case "hihi": echo "lachen!"; case false: case null: default: echo "nja"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
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: 16
Branch analysis from position: 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Hm14t
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    4     3        FETCH_R                      global              ~1      '_GET'
          4        FETCH_DIM_R                                      ~2      ~1, 'a'
    5     5        CASE                                                     ~2, 'lol'
          6      > JMPNZ                                                    ~3, ->14
    7     7    >   CASE                                                     ~2, 'hihi'
          8      > JMPNZ                                                    ~3, ->15
    4     9    >   CASE                                                     ~2, <false>
         10      > JMPNZ                                                    ~3, ->16
   10    11    >   CASE                                                     ~2, null
         12      > JMPNZ                                                    ~3, ->16
         13    > > JMP                                                      ->16
    6    14    >   ECHO                                                     'haha'
    8    15    >   ECHO                                                     'lachen%21'
   12    16    >   ECHO                                                     'nja'
         17        FREE                                                     ~2
   16    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.57 ms | 1395 KiB | 15 Q