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!"; default: echo "nja"; } ?>
Finding entry points
Branch analysis from position: 0
4 jumps found. (Code = 188) Position 1 = 11, Position 2 = 12, Position 3 = 13, Position 4 = 6
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
Branch analysis from position: 13
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 12
Branch analysis from position: 11
filename:       /in/NntaT
function name:  (null)
number of ops:  16
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      > SWITCH_STRING                                            ~2, [ 'lol':->11, 'hihi':->12, ], ->13
    5     6    >   CASE                                                     ~2, 'lol'
          7      > JMPNZ                                                    ~3, ->11
    7     8    >   CASE                                                     ~2, 'hihi'
          9      > JMPNZ                                                    ~3, ->12
         10    > > JMP                                                      ->13
    6    11    >   ECHO                                                     'haha'
    8    12    >   ECHO                                                     'lachen%21'
   10    13    >   ECHO                                                     'nja'
         14        FREE                                                     ~2
   13    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.24 ms | 1395 KiB | 15 Q