3v4l.org

run code in 300+ PHP versions simultaneously
<?php function checkText($email, $passwd, $loc, $errorMess){ if ($email == ""){ $host = $_SERVER['HTTP_HOST']; $location = ("?emailL=$email&errorBoxSignIn=$errorMess"); header("Location: http://$host/$location"); die(); }; }; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qn1cC
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E > > RETURN                                                   1

Function checktext:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 22
Branch analysis from position: 6
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qn1cC
function name:  checkText
number of ops:  23
compiled vars:  !0 = $email, !1 = $passwd, !2 = $loc, !3 = $errorMess, !4 = $host, !5 = $location
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    4     4        IS_EQUAL                                                 !0, ''
          5      > JMPZ                                                     ~6, ->22
    5     6    >   FETCH_R                      global              ~7      '_SERVER'
          7        FETCH_DIM_R                                      ~8      ~7, 'HTTP_HOST'
          8        ASSIGN                                                   !4, ~8
    6     9        ROPE_INIT                                     4  ~11     '%3FemailL%3D'
         10        ROPE_ADD                                      1  ~11     ~11, !0
         11        ROPE_ADD                                      2  ~11     ~11, '%26errorBoxSignIn%3D'
         12        ROPE_END                                      3  ~10     ~11, !3
         13        ASSIGN                                                   !5, ~10
    7    14        INIT_FCALL                                               'header'
         15        ROPE_INIT                                     4  ~15     'Location%3A+http%3A%2F%2F'
         16        ROPE_ADD                                      1  ~15     ~15, !4
         17        ROPE_ADD                                      2  ~15     ~15, '%2F'
         18        ROPE_END                                      3  ~14     ~15, !5
         19        SEND_VAL                                                 ~14
         20        DO_ICALL                                                 
    8    21      > EXIT                                                     
   10    22    > > RETURN                                                   null

End of function checktext

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.78 ms | 1395 KiB | 15 Q