3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Text:&Scaron;:Тест'; echo $str . PHP_EOL; $str = html_entity_decode( $str, 0, 'utf-8' ); echo $str . PHP_EOL; echo htmlentities( $str, 0, 'utf-8' ) . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O5ClJ
function name:  (null)
number of ops:  19
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        CONCAT                                           ~2      !0, '%0A'
          2        ECHO                                                     ~2
    4     3        INIT_FCALL                                               'html_entity_decode'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 0
          6        SEND_VAL                                                 'utf-8'
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !0, $3
    5     9        CONCAT                                           ~5      !0, '%0A'
         10        ECHO                                                     ~5
    6    11        INIT_FCALL                                               'htmlentities'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 0
         14        SEND_VAL                                                 'utf-8'
         15        DO_ICALL                                         $6      
         16        CONCAT                                           ~7      $6, '%0A'
         17        ECHO                                                     ~7
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.1 ms | 1394 KiB | 17 Q