3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $_GET['a'] = 'lol'; 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 = 14, Position 2 = 15, Position 3 = 16, Position 4 = 9
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 16
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 15
Branch analysis from position: 14
filename:       /in/Tmeu9
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                                                 
    3     3        FETCH_W                      global              $1      '_GET'
          4        ASSIGN_DIM                                               $1, 'a'
          5        OP_DATA                                                  'lol'
    4     6        FETCH_R                      global              ~3      '_GET'
          7        FETCH_DIM_R                                      ~4      ~3, 'a'
          8      > SWITCH_STRING                                            ~4, [ 'lol':->14, 'hihi':->15, ], ->16
    5     9    >   CASE                                                     ~4, 'lol'
         10      > JMPNZ                                                    ~5, ->14
    7    11    >   CASE                                                     ~4, 'hihi'
         12      > JMPNZ                                                    ~5, ->15
         13    > > JMP                                                      ->16
    6    14    >   ECHO                                                     'haha'
    8    15    >   ECHO                                                     'lachen%21'
   10    16    >   ECHO                                                     'nja'
         17        FREE                                                     ~4
   13    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.04 ms | 1395 KiB | 15 Q