3v4l.org

run code in 300+ PHP versions simultaneously
<?php $client_name = $_GET['client_name']; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>My form</title> </head> <body> <form method='get'> <label>name: </label> <input type='text' name='client_name' /> <button type='submit'>Submit</button> </form> <p> <?php $client_name ? print $client_name : print 'Please Enter Name'; ?> </p> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YS7g6
function name:  (null)
number of ops:  13
compiled vars:  !0 = $client_name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_R                      global              ~1      '_GET'
          1        FETCH_DIM_R                                      ~2      ~1, 'client_name'
          2        ASSIGN                                                   !0, ~2
    4     3        ECHO                                                     '%3C%21DOCTYPE+html%3E%0A%3Chtml+lang%3D%22en%22%3E%0A++++%3Chead%3E%0A++++++++%3Cmeta+charset%3D%22utf-8%22+%2F%3E%0A++++++++%3Ctitle%3EMy+form%3C%2Ftitle%3E%0A++++%3C%2Fhead%3E%0A++++%3Cbody%3E%0A++++++++%3Cform+method%3D%27get%27%3E%0A++++++++++++%3Clabel%3Ename%3A+%3C%2Flabel%3E%0A++++++++++++%3Cinput+type%3D%27text%27+name%3D%27client_name%27+%2F%3E%0A++++++++++++%3Cbutton+type%3D%27submit%27%3ESubmit%3C%2Fbutton%3E%0A++++++++%3C%2Fform%3E%0A++++++++%3Cp%3E%0A++++++++++++'
   17     4      > JMPZ                                                     !0, ->8
          5    >   ECHO                                                     !0
          6        QM_ASSIGN                                        ~4      1
          7      > JMP                                                      ->10
          8    >   ECHO                                                     'Please+Enter+Name'
          9        QM_ASSIGN                                        ~4      1
         10    >   FREE                                                     ~4
   18    11        ECHO                                                     '++++++++%3C%2Fp%3E%0A++++%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   20    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.34 ms | 1394 KiB | 13 Q