3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
154.13 ms | 1375 KiB | 15 Q