3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo json_encode(array(iconv('utf8', 'cp1251', 'ф')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RONQM
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_encode'
          1        INIT_FCALL_BY_NAME                                       'iconv'
          2        SEND_VAL_EX                                              'utf8'
          3        SEND_VAL_EX                                              'cp1251'
          4        SEND_VAL_EX                                              '%D1%84'
          5        DO_FCALL                                      0  $0      
          6        INIT_ARRAY                                       ~1      $0
          7        SEND_VAL                                                 ~1
          8        DO_ICALL                                         $2      
          9        ECHO                                                     $2
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.52 ms | 1394 KiB | 15 Q