3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'Text:&Scaron;:Тест'; var_dump($str); $str = html_entity_decode( $str, 0, 'utf-8' ); var_dump($str); var_dump(htmlentities( $str, 0, 'utf-8' ));
based on O5ClJ
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/Y9ADW
function name:  (null)
number of ops:  22
compiled vars:  !0 = $str
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN                                                   !0, 'Text%3A%26Scaron%3B%3A%D0%A2%D0%B5%D1%81%D1%82'
   3     1        INIT_FCALL                                               'var_dump'
         2        SEND_VAR                                                 !0
         3        DO_ICALL                                                 
   4     4        INIT_FCALL                                               'html_entity_decode'
         5        SEND_VAR                                                 !0
         6        SEND_VAL                                                 0
         7        SEND_VAL                                                 'utf-8'
         8        DO_ICALL                                         $3      
         9        ASSIGN                                                   !0, $3
   5    10        INIT_FCALL                                               'var_dump'
        11        SEND_VAR                                                 !0
        12        DO_ICALL                                                 
   6    13        INIT_FCALL                                               'var_dump'
        14        INIT_FCALL                                               'htmlentities'
        15        SEND_VAR                                                 !0
        16        SEND_VAL                                                 0
        17        SEND_VAL                                                 'utf-8'
        18        DO_ICALL                                         $6      
        19        SEND_VAR                                                 $6
        20        DO_ICALL                                                 
        21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0