3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = '<script></script>'; /*** sanitize the input ***/ $first_name = filter_var($foo, FILTER_SANITIZE_STRING); /*** assign the input ***/ $message = 'Thank you ' . $first_name; echo $message;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X1Nh5
function name:  (null)
number of ops:  10
compiled vars:  !0 = $foo, !1 = $first_name, !2 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cscript%3E%3C%2Fscript%3E'
    6     1        INIT_FCALL                                               'filter_var'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 513
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    9     6        CONCAT                                           ~6      'Thank+you+', !1
          7        ASSIGN                                                   !2, ~6
   11     8        ECHO                                                     !2
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.75 ms | 1394 KiB | 15 Q