3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $var1 = utf8_encode('™\n'); $json = json_encode($var1); echo utf8_decode(json_decode($json));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cNOMb
function name:  (null)
number of ops:  17
compiled vars:  !0 = $var1, !1 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'utf8_encode'
          1        SEND_VAL                                                 '%E2%84%A2%5Cn'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                           ~3      !0, $2
          4        ECHO                                                     ~3
    3     5        INIT_FCALL                                               'json_encode'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    5     9        INIT_FCALL                                               'utf8_decode'
         10        INIT_FCALL                                               'json_decode'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $6      
         13        SEND_VAR                                                 $6
         14        DO_ICALL                                         $7      
         15        ECHO                                                     $7
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.24 ms | 1394 KiB | 21 Q