3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5); echo $str = json_encode($arr); echo "\n"; echo $str = json_decode((string)$str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XdZOk
function name:  (null)
number of ops:  14
compiled vars:  !0 = $arr, !1 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'json_encode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                           ~4      !1, $3
          5        ECHO                                                     ~4
    7     6        ECHO                                                     '%0A'
    9     7        INIT_FCALL                                               'json_decode'
          8        CAST                                          6  ~5      !1
          9        SEND_VAL                                                 ~5
         10        DO_ICALL                                         $6      
         11        ASSIGN                                           ~7      !1, $6
         12        ECHO                                                     ~7
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.95 ms | 1394 KiB | 17 Q