3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( "test" => 123, "test2" => 345, "text3" => array("awesome") ); $a = json_encode($array, JSON_UNESCAPED_UNICODE); $b = json_decode($a, JSON_UNESCAPED_UNICODE); echo "<pre>"; print_r($array, true); print_r($b, true);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9QcdP
function name:  (null)
number of ops:  23
compiled vars:  !0 = $array, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'json_encode'
          2        SEND_VAR                                                 !0
          3        FETCH_CONSTANT                                   ~4      '%C2%A0JSON_UNESCAPED_UNICODE'
          4        SEND_VAL                                                 ~4
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !1, $5
   10     7        INIT_FCALL                                               'json_decode'
          8        SEND_VAR                                                 !1
          9        FETCH_CONSTANT                                   ~7      '%C2%A0JSON_UNESCAPED_UNICODE'
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !2, $8
   11    13        ECHO                                                     '%3Cpre%3E'
   12    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 <true>
         17        DO_ICALL                                                 
   13    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !2
         20        SEND_VAL                                                 <true>
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.22 ms | 1395 KiB | 19 Q