3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(isset($_POST['email'])) { // EDIT THE 2 LINES BELOW AS REQUIRED $to = "you@yourdomain.com"; $subject = "Your email subject line"; function died($error) { // your error code can go here echo "We are very sorry, but there were error(s) found with the form you submitted. "; echo "These errors appear below.<br /><br />"; echo $error."<br /><br />"; echo "Please go back and fix these errors.<br /><br />"; die(); } // validation expected data exists if(!isset($_POST['first_name']) || !isset($_POST['last_name']) || !isset($_POST['email']) || !isset($_POST['telephone']) || !isset($_POST['comments'])) { died('We are sorry, but there appears to be a problem with the form you submitted.'); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 33
Branch analysis from position: 3
2 jumps found. (Code = 47) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
2 jumps found. (Code = 47) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
2 jumps found. (Code = 47) Position 1 = 20, Position 2 = 24
Branch analysis from position: 20
2 jumps found. (Code = 47) Position 1 = 25, Position 2 = 29
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 33
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
Branch analysis from position: 29
Branch analysis from position: 24
Branch analysis from position: 19
Branch analysis from position: 14
Branch analysis from position: 33
filename:       /in/09rBp
function name:  (null)
number of ops:  34
compiled vars:  !0 = $to, !1 = $subject
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_IS                                         ~2      '_POST'
          1        ISSET_ISEMPTY_DIM_OBJ                         0          ~2, 'email'
          2      > JMPZ                                                     ~3, ->33
    5     3    >   ASSIGN                                                   !0, 'you%40yourdomain.com'
    6     4        ASSIGN                                                   !1, 'Your+email+subject+line'
    9     5        DECLARE_FUNCTION                                         'died'
   19     6        FETCH_IS                                         ~6      '_POST'
          7        ISSET_ISEMPTY_DIM_OBJ                         0  ~7      ~6, 'first_name'
          8        BOOL_NOT                                         ~8      ~7
          9      > JMPNZ_EX                                         ~8      ~8, ->14
   20    10    >   FETCH_IS                                         ~9      '_POST'
         11        ISSET_ISEMPTY_DIM_OBJ                         0  ~10     ~9, 'last_name'
         12        BOOL_NOT                                         ~11     ~10
         13        BOOL                                             ~8      ~11
         14    > > JMPNZ_EX                                         ~8      ~8, ->19
   21    15    >   FETCH_IS                                         ~12     '_POST'
         16        ISSET_ISEMPTY_DIM_OBJ                         0  ~13     ~12, 'email'
         17        BOOL_NOT                                         ~14     ~13
         18        BOOL                                             ~8      ~14
         19    > > JMPNZ_EX                                         ~8      ~8, ->24
   22    20    >   FETCH_IS                                         ~15     '_POST'
         21        ISSET_ISEMPTY_DIM_OBJ                         0  ~16     ~15, 'telephone'
         22        BOOL_NOT                                         ~17     ~16
         23        BOOL                                             ~8      ~17
         24    > > JMPNZ_EX                                         ~8      ~8, ->29
   23    25    >   FETCH_IS                                         ~18     '_POST'
         26        ISSET_ISEMPTY_DIM_OBJ                         0  ~19     ~18, 'comments'
         27        BOOL_NOT                                         ~20     ~19
         28        BOOL                                             ~8      ~20
         29    > > JMPZ                                                     ~8, ->33
   24    30    >   INIT_FCALL_BY_NAME                                       'died'
         31        SEND_VAL_EX                                              'We+are+sorry%2C+but+there+appears+to+be+a+problem+with+the+form+you+submitted.'
         32        DO_FCALL                                      0          
   26    33    > > RETURN                                                   1

Function %00died%2Fin%2F09rBp%3A9%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/09rBp
function name:  died
number of ops:  8
compiled vars:  !0 = $error
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   11     1        ECHO                                                     'We+are+very+sorry%2C+but+there+were+error%28s%29+found+with+the+form+you+submitted.+'
   12     2        ECHO                                                     'These+errors+appear+below.%3Cbr+%2F%3E%3Cbr+%2F%3E'
   13     3        CONCAT                                           ~1      !0, '%3Cbr+%2F%3E%3Cbr+%2F%3E'
          4        ECHO                                                     ~1
   14     5        ECHO                                                     'Please+go+back+and+fix+these+errors.%3Cbr+%2F%3E%3Cbr+%2F%3E'
   15     6      > EXIT                                                     
   16     7*     > RETURN                                                   null

End of function %00died%2Fin%2F09rBp%3A9%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.83 ms | 1399 KiB | 13 Q