3v4l.org

run code in 300+ PHP versions simultaneously
<?php $color = 'blue'; if ( isset( $_GET['COLOR'] ) ) $color = $_GET['COLOR']; require( $color . '.php' ); ?> <form> <select name="COLOR"> <option value="red">red</option> <option value="blue">blue</option> </select> <input type="submit"> </form>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/UcOIO
function name:  (null)
number of ops:  11
compiled vars:  !0 = $color
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'blue'
    3     1        FETCH_IS                                         ~2      '_GET'
          2        ISSET_ISEMPTY_DIM_OBJ                         0          ~2, 'COLOR'
          3      > JMPZ                                                     ~3, ->7
    4     4    >   FETCH_R                      global              ~4      '_GET'
          5        FETCH_DIM_R                                      ~5      ~4, 'COLOR'
          6        ASSIGN                                                   !0, ~5
    5     7    >   CONCAT                                           ~7      !0, '.php'
          8        INCLUDE_OR_EVAL                                          ~7, REQUIRE
    7     9        ECHO                                                     '%3Cform%3E%0A+++%3Cselect+name%3D%22COLOR%22%3E%0A++++++%3Coption+value%3D%22red%22%3Ered%3C%2Foption%3E%0A++++++%3Coption+value%3D%22blue%22%3Eblue%3C%2Foption%3E%0A+++%3C%2Fselect%3E%0A+++%3Cinput+type%3D%22submit%22%3E%0A%3C%2Fform%3E'
   13    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.82 ms | 1393 KiB | 13 Q