3v4l.org

run code in 300+ PHP versions simultaneously
<?php $attributes['action'] = 'listor2der'; switch($attributes['action']) { case "list": echo 'List!'; break; case "listorder": echo 'Listorder!'; break; case "order.php": echo 'Regex works!'; break; default: echo 'Regex doesn\'t work((('; break; }
Finding entry points
Branch analysis from position: 0
5 jumps found. (Code = 188) Position 1 = 11, Position 2 = 13, Position 3 = 15, Position 4 = 17, Position 5 = 4
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 15
Branch analysis from position: 13
Branch analysis from position: 11
filename:       /in/1Qnh7
function name:  (null)
number of ops:  21
compiled vars:  !0 = $attributes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 'action'
          1        OP_DATA                                                  'listor2der'
    4     2        FETCH_DIM_R                                      ~2      !0, 'action'
          3      > SWITCH_STRING                                            ~2, [ 'list':->11, 'listorder':->13, 'order.php':->15, ], ->17
    6     4    >   CASE                                                     ~2, 'list'
          5      > JMPNZ                                                    ~3, ->11
    9     6    >   CASE                                                     ~2, 'listorder'
          7      > JMPNZ                                                    ~3, ->13
   13     8    >   CASE                                                     ~2, 'order.php'
          9      > JMPNZ                                                    ~3, ->15
         10    > > JMP                                                      ->17
    6    11    >   ECHO                                                     'List%21'
    7    12      > JMP                                                      ->19
    9    13    >   ECHO                                                     'Listorder%21'
   10    14      > JMP                                                      ->19
   13    15    >   ECHO                                                     'Regex+works%21'
   14    16      > JMP                                                      ->19
   16    17    >   ECHO                                                     'Regex+doesn%27t+work%28%28%28'
   17    18      > JMP                                                      ->19
         19    >   FREE                                                     ~2
   18    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.13 ms | 1395 KiB | 13 Q