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($str, false, 512, JSON_BIGINT_AS_STRING);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q0Btd
function name:  (null)
number of ops:  16
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        SEND_VAR                                                 !1
          9        SEND_VAL                                                 <false>
         10        SEND_VAL                                                 512
         11        SEND_VAL                                                 2
         12        DO_ICALL                                         $5      
         13        ASSIGN                                           ~6      !1, $5
         14        ECHO                                                     ~6
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.43 ms | 1394 KiB | 17 Q