3v4l.org

run code in 300+ PHP versions simultaneously
<?php $check; if (!isset($_POST['checkid'])) { $check = 'checked="checked"'; } ?> <html> <body> <div> <form method="POST"> <input type="checkbox" id="checkid" value="1" onChange="this.form.submit();" {$checked} /> </form> </div> <body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/nu2iH
function name:  (null)
number of ops:  7
compiled vars:  !0 = $check
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_IS                                         ~1      '_POST'
          1        ISSET_ISEMPTY_DIM_OBJ                         0  ~2      ~1, 'checkid'
          2        BOOL_NOT                                         ~3      ~2
          3      > JMPZ                                                     ~3, ->5
    4     4    >   ASSIGN                                                   !0, 'checked%3D%22checked%22'
    7     5    >   ECHO                                                     '%3Chtml%3E%0A++++%3Cbody%3E%0A++++++++%3Cdiv%3E%0A++++++++++++%3Cform+method%3D%22POST%22%3E%0A++++++++++++++++%3Cinput+type%3D%22checkbox%22+id%3D%22checkid%22+value%3D%221%22+onChange%3D%22this.form.submit%28%29%3B%22+%7B%24checked%7D+%2F%3E%0A++++++++++++%3C%2Fform%3E%0A++++++++%3C%2Fdiv%3E%0A++++++++%3Cbody%3E%0A++++++++%3C%2Fhtml%3E'
   15     6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.77 ms | 1392 KiB | 13 Q