3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = (object) array( "uml" => "fü", ); echo json_encode($json, JSON_UNESCAPED_UNICODE) . PHP_EOL; echo json_encode($json) . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kZv1H
function name:  (null)
number of ops:  14
compiled vars:  !0 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          8  ~1      <array>
    2     1        ASSIGN                                                   !0, ~1
    6     2        INIT_FCALL                                               'json_encode'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 256
          5        DO_ICALL                                         $3      
          6        CONCAT                                           ~4      $3, '%0A'
          7        ECHO                                                     ~4
    8     8        INIT_FCALL                                               'json_encode'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $5      
         11        CONCAT                                           ~6      $5, '%0A'
         12        ECHO                                                     ~6
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.17 ms | 1394 KiB | 15 Q