3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo json_encode( array( html_entities( '“ ”' ) ) ) . PHP_EOL; echo json_encode( array( html_entity_decode( '&#147; &#148;', ENT_QUOTES, 'UTF-8' ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TK6GA
function name:  (null)
number of ops:  20
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'json_encode'
          1        INIT_FCALL_BY_NAME                                       'html_entities'
          2        SEND_VAL_EX                                              '%E2%80%9C+%E2%80%9D'
          3        DO_FCALL                                      0  $0      
          4        INIT_ARRAY                                       ~1      $0
          5        SEND_VAL                                                 ~1
          6        DO_ICALL                                         $2      
          7        CONCAT                                           ~3      $2, '%0A'
          8        ECHO                                                     ~3
    4     9        INIT_FCALL                                               'json_encode'
         10        INIT_FCALL                                               'html_entity_decode'
         11        SEND_VAL                                                 '%26%23147%3B+%26%23148%3B'
         12        SEND_VAL                                                 3
         13        SEND_VAL                                                 'UTF-8'
         14        DO_ICALL                                         $4      
         15        INIT_ARRAY                                       ~5      $4
         16        SEND_VAL                                                 ~5
         17        DO_ICALL                                         $6      
         18        ECHO                                                     $6
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.24 ms | 1395 KiB | 17 Q