3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dirty_html = array('name' => $_POST['name'], 'comment' => $_POST['comment']); $config = HTMLPurifier_Config::createDefault(); $purifier = new HTMLPurifier($config); $clean_html = $purifier->purify($dirty_html);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Tvs5n
function name:  (null)
number of ops:  19
compiled vars:  !0 = $dirty_html, !1 = $config, !2 = $purifier, !3 = $clean_html
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_R                      global              ~4      '_POST'
          1        FETCH_DIM_R                                      ~5      ~4, 'name'
          2        INIT_ARRAY                                       ~6      ~5, 'name'
          3        FETCH_R                      global              ~7      '_POST'
          4        FETCH_DIM_R                                      ~8      ~7, 'comment'
          5        ADD_ARRAY_ELEMENT                                ~6      ~8, 'comment'
          6        ASSIGN                                                   !0, ~6
    4     7        INIT_STATIC_METHOD_CALL                                  'HTMLPurifier_Config', 'createDefault'
          8        DO_FCALL                                      0  $10     
          9        ASSIGN                                                   !1, $10
    5    10        NEW                                              $12     'HTMLPurifier'
         11        SEND_VAR_EX                                              !1
         12        DO_FCALL                                      0          
         13        ASSIGN                                                   !2, $12
    6    14        INIT_METHOD_CALL                                         !2, 'purify'
         15        SEND_VAR_EX                                              !0
         16        DO_FCALL                                      0  $15     
         17        ASSIGN                                                   !3, $15
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.07 ms | 1394 KiB | 13 Q