3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.34 ms | 1395 KiB | 19 Q