3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = "Café & 'quotes' and € euro"; // ISO-8859-1 mode var_dump( htmlentities($string, ENT_QUOTES, "big5")); // empty string var_dump( htmlentities($string, ENT_QUOTES, "xxx")); // default to utf8 // Caf&eacute; &amp; &#039;quotes&#039; and &euro; euro
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1vaRr
function name:  (null)
number of ops:  18
compiled vars:  !0 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'Caf%C3%A9+%26+%27quotes%27+and+%E2%82%AC+euro'
    6     1        INIT_FCALL                                                   'var_dump'
          2        INIT_FCALL                                                   'htmlentities'
          3        SEND_VAR                                                     !0
          4        SEND_VAL                                                     3
          5        SEND_VAL                                                     'big5'
          6        DO_ICALL                                             $2      
          7        SEND_VAR                                                     $2
          8        DO_ICALL                                                     
    9     9        INIT_FCALL                                                   'var_dump'
         10        INIT_FCALL                                                   'htmlentities'
         11        SEND_VAR                                                     !0
         12        SEND_VAL                                                     3
         13        SEND_VAL                                                     'xxx'
         14        DO_ICALL                                             $4      
         15        SEND_VAR                                                     $4
         16        DO_ICALL                                                     
   11    17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
146.06 ms | 3495 KiB | 15 Q