3v4l.org

run code in 200+ 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  ~3      ~2, 'email'
         2      > JMPZ                                                     ~3, ->33
   5     3    >   QM_ASSIGN                                                !0
   6     4        QM_ASSIGN                                                !1
   9     5        DECLARE_FUNCTION                                         'died'
  19     6        FETCH_IS                                         ~6      '_POST'
         7        ISSET_ISEMPTY_DIM_OBJ                         0  ~7      ~6, 'first_name'
         8        BOOL_XOR                                         ~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_XOR                                         ~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_XOR                                         ~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_XOR                                         ~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_XOR                                         ~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%2F09rBp0x7f720887a1aa:
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        ASSIGN_OBJ                                               'We+are+very+sorry%2C+but+there+were+error%28s%29+found+with+the+form+you+submitted.+'
  12     2        ASSIGN_OBJ                                               'These+errors+appear+below.%3Cbr+%2F%3E%3Cbr+%2F%3E'
  13     3        CONCAT                                           ~1      !0, '%3Cbr+%2F%3E%3Cbr+%2F%3E'
         4        ASSIGN_OBJ                                               ~1
  14     5        ASSIGN_OBJ                                               '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%2F09rBp0x7f720887a1aa

Generated using Vulcan Logic Dumper, using php 7.4.0