3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); switch($_GET['a']) { case "lol" : echo "haha"; break; case "hihi": echo "lachen!"; break; default: echo "nja"; } ?>
Finding entry points
Branch analysis from position: 0
4 jumps found. (Code = 188) Position 1 = 11, Position 2 = 13, Position 3 = 15, Position 4 = 6
Branch analysis from position: 11
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: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
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 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 13
Branch analysis from position: 11
filename:       /in/QiPnX
function name:  (null)
number of ops:  18
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':->13, ], ->15
    5     6    >   CASE                                                     ~2, 'lol'
          7      > JMPNZ                                                    ~3, ->11
    8     8    >   CASE                                                     ~2, 'hihi'
          9      > JMPNZ                                                    ~3, ->13
         10    > > JMP                                                      ->15
    6    11    >   ECHO                                                     'haha'
    7    12      > JMP                                                      ->16
    9    13    >   ECHO                                                     'lachen%21'
   10    14      > JMP                                                      ->16
   12    15    >   ECHO                                                     'nja'
         16    >   FREE                                                     ~2
   15    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.61 ms | 1387 KiB | 15 Q