3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (array_keys($_POST) == array('imie', 'nazwisko', 'hotel_id')) { echo 'ok'; } echo '<style type="text/css"> label {display:block} </style> <form method=POST"> <label>Imie</label> <input type="text" name="imie" /> <label>Nazwisko</label> <input type="text" name="nazwisko" /> <label>Wybierz hotel</label> <select name="hotel_id"> <option value="1">Warsaw Hotel Marriott</option> <option value="2">Hotel Prada</option> <option value="3">Hotel Miedzyzdroje</option> </select><br/> <input type="submit" value="Submit" /> </form>';
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
Jump found. Position 1 = -2
Branch analysis from position: 7
filename:       /in/mQomL
function name:  (null)
number of ops:  9
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL                                               'array_keys'
         1        FETCH_R                      global              $0      '_POST'
         2        SEND_VAR                                                 $0
         3        DO_ICALL                                         $1      
         4        IS_EQUAL                                         ~2      $1, <array>
         5      > JMPZ                                                     ~2, ->7
   4     6    >   ECHO                                                     'ok'
  23     7    >   ECHO                                                     '%3Cstyle+type%3D%22text%2Fcss%22%3E%0Alabel+%7Bdisplay%3Ablock%7D%0A%3C%2Fstyle%3E%0A%0A%3Cform+method%3DPOST%22%3E%0A%09%3Clabel%3EImie%3C%2Flabel%3E%0A%09%3Cinput+type%3D%22text%22+name%3D%22imie%22+%2F%3E%0A%09%3Clabel%3ENazwisko%3C%2Flabel%3E%0A%09%3Cinput+type%3D%22text%22+name%3D%22nazwisko%22+%2F%3E%0A%09%3Clabel%3EWybierz+hotel%3C%2Flabel%3E%0A%09%3Cselect+name%3D%22hotel_id%22%3E%0A%09%09%3Coption+value%3D%221%22%3EWarsaw+Hotel+Marriott%3C%2Foption%3E%0A%09%09%3Coption+value%3D%222%22%3EHotel+Prada%3C%2Foption%3E%0A%09%09%3Coption+value%3D%223%22%3EHotel+Miedzyzdroje%3C%2Foption%3E%0A%09%3C%2Fselect%3E%3Cbr%2F%3E%0A%09%3Cinput+type%3D%22submit%22+value%3D%22Submit%22+%2F%3E%0A%3C%2Fform%3E'
         8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.1.0