3v4l.org

run code in 300+ PHP versions simultaneously
<?php function clean_field($content){ $result = htmlentities($content, ENT_COMPAT | ENT_IGNORE, UTF-8); return $result; } echo clean_fields(" uyhweifyh "); echo clean_fields(""); echo clean_fields(NULL); echo clean_fields(" Basti&#243;n SL "); echo clean_fields("'Basti&#243;n SL'"); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CNsFe
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL_BY_NAME                                       'clean_fields'
          1        SEND_VAL_EX                                              '++uyhweifyh+'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
   10     4        INIT_FCALL_BY_NAME                                       'clean_fields'
          5        SEND_VAL_EX                                              ''
          6        DO_FCALL                                      0  $1      
          7        ECHO                                                     $1
   11     8        INIT_FCALL_BY_NAME                                       'clean_fields'
          9        SEND_VAL_EX                                              null
         10        DO_FCALL                                      0  $2      
         11        ECHO                                                     $2
   12    12        INIT_FCALL_BY_NAME                                       'clean_fields'
         13        SEND_VAL_EX                                              '+Basti%26%23243%3Bn+SL+'
         14        DO_FCALL                                      0  $3      
         15        ECHO                                                     $3
   13    16        INIT_FCALL_BY_NAME                                       'clean_fields'
         17        SEND_VAL_EX                                              '%27Basti%26%23243%3Bn+SL%27'
         18        DO_FCALL                                      0  $4      
         19        ECHO                                                     $4
   15    20      > RETURN                                                   1

Function clean_field:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CNsFe
function name:  clean_field
number of ops:  11
compiled vars:  !0 = $content, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'htmlentities'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 6
          4        FETCH_CONSTANT                                   ~2      'UTF'
          5        SUB                                              ~3      ~2, 8
          6        SEND_VAL                                                 ~3
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    6     9      > RETURN                                                   !1
    7    10*     > RETURN                                                   null

End of function clean_field

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.05 ms | 1396 KiB | 15 Q