3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo json_encode(array("äöü"."-".utf8_encode("äöü")."-".utf8_encode(utf8_encode("äöü"))."-".mb_convert_encoding("äöü", 'UTF-8')."-".mb_convert_encoding(utf8_encode("äöü"), 'UTF-8')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/g0mYj
function name:  (null)
number of ops:  33
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'json_encode'
          1        INIT_FCALL                                               'utf8_encode'
          2        SEND_VAL                                                 '%C3%A4%C3%B6%C3%BC'
          3        DO_ICALL                                         $0      
          4        CONCAT                                           ~1      '%C3%A4%C3%B6%C3%BC-', $0
          5        CONCAT                                           ~2      ~1, '-'
          6        INIT_FCALL                                               'utf8_encode'
          7        INIT_FCALL                                               'utf8_encode'
          8        SEND_VAL                                                 '%C3%A4%C3%B6%C3%BC'
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        DO_ICALL                                         $4      
         12        CONCAT                                           ~5      ~2, $4
         13        CONCAT                                           ~6      ~5, '-'
         14        INIT_FCALL                                               'mb_convert_encoding'
         15        SEND_VAL                                                 '%C3%A4%C3%B6%C3%BC'
         16        SEND_VAL                                                 'UTF-8'
         17        DO_ICALL                                         $7      
         18        CONCAT                                           ~8      ~6, $7
         19        CONCAT                                           ~9      ~8, '-'
         20        INIT_FCALL                                               'mb_convert_encoding'
         21        INIT_FCALL                                               'utf8_encode'
         22        SEND_VAL                                                 '%C3%A4%C3%B6%C3%BC'
         23        DO_ICALL                                         $10     
         24        SEND_VAR                                                 $10
         25        SEND_VAL                                                 'UTF-8'
         26        DO_ICALL                                         $11     
         27        CONCAT                                           ~12     ~9, $11
         28        INIT_ARRAY                                       ~13     ~12
         29        SEND_VAL                                                 ~13
         30        DO_ICALL                                         $14     
         31        ECHO                                                     $14
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
127.9 ms | 1401 KiB | 19 Q