3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ["0" => "a", "1" => "b", "2" => "c"]; $encode = json_encode($array); var_dump(json_decode($encode, TRUE), json_decode($encode, FALSE));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4jgrc
function name:  (null)
number of ops:  18
compiled vars:  !0 = $array, !1 = $encode
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'json_encode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    6     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'json_decode'
          7        SEND_VAR                                                 !1
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        INIT_FCALL                                               'json_decode'
         12        SEND_VAR                                                 !1
         13        SEND_VAL                                                 <false>
         14        DO_ICALL                                         $6      
         15        SEND_VAR                                                 $6
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.34 ms | 1394 KiB | 19 Q