3v4l.org

run code in 300+ PHP versions simultaneously
<?php function htmlkarakter($string) { $string = str_replace(array("&lt;", "&gt;", '&amp;', '&#039;', '&quot;','&lt;', '&gt;'), array("<", ">",'&','\'','"','<','>'), htmlspecialchars_decode($string, ENT_NOQUOTES)); return $string; } $kueri = "jangan, pernah > pergi dan < kembali"; echo htmlkarakter($kueri);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V3T7Y
function name:  (null)
number of ops:  6
compiled vars:  !0 = $kueri
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, 'jangan%2C+pernah+%3E+pergi+dan+%3C+kembali'
   11     1        INIT_FCALL                                               'htmlkarakter'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
          5      > RETURN                                                   1

Function htmlkarakter:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V3T7Y
function name:  htmlkarakter
number of ops:  13
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 <array>
          3        SEND_VAL                                                 <array>
          4        INIT_FCALL                                               'htmlspecialchars_decode'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 0
          7        DO_ICALL                                         $1      
          8        SEND_VAR                                                 $1
          9        DO_ICALL                                         $2      
         10        ASSIGN                                                   !0, $2
    7    11      > RETURN                                                   !0
    9    12*     > RETURN                                                   null

End of function htmlkarakter

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.96 ms | 1397 KiB | 18 Q