3v4l.org

run code in 300+ PHP versions simultaneously
<?php $urlencoded = url_encode('<script>alert("foo")</script>'); var_dump($urlencoded); var_dump(strip_tags('<script>alert("foo")</script>')); var_dump(strip_tags($urlencoded));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T4kiH
function name:  (null)
number of ops:  20
compiled vars:  !0 = $urlencoded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'url_encode'
          1        SEND_VAL_EX                                              '%3Cscript%3Ealert%28%22foo%22%29%3C%2Fscript%3E'
          2        DO_FCALL                                      0  $1      
          3        ASSIGN                                                   !0, $1
    3     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    4     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'strip_tags'
          9        SEND_VAL                                                 '%3Cscript%3Ealert%28%22foo%22%29%3C%2Fscript%3E'
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                                 
    5    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'strip_tags'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $6      
         17        SEND_VAR                                                 $6
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.42 ms | 1395 KiB | 17 Q