3v4l.org

run code in 300+ PHP versions simultaneously
<?php $object = json_decode(json_encode(array( "options" => array( 0 => json_decode(json_encode(array( "value" => 0, "text" => "wtf0000" ))), 1 => json_decode(json_encode(array( "value" => 1, "text" => "wtf1111" ))) ) ))); print_r($object);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O6Yio
function name:  (null)
number of ops:  26
compiled vars:  !0 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_decode'
          1        INIT_FCALL                                               'json_encode'
    5     2        INIT_FCALL                                               'json_decode'
          3        INIT_FCALL                                               'json_encode'
    6     4        SEND_VAL                                                 <array>
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                         $2      
          8        INIT_ARRAY                                       ~3      $2, 0
    9     9        INIT_FCALL                                               'json_decode'
         10        INIT_FCALL                                               'json_encode'
   10    11        SEND_VAL                                                 <array>
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                         $5      
         15        ADD_ARRAY_ELEMENT                                ~3      $5, 1
         16        INIT_ARRAY                                       ~6      ~3, 'options'
         17        SEND_VAL                                                 ~6
         18        DO_ICALL                                         $7      
         19        SEND_VAR                                                 $7
         20        DO_ICALL                                         $8      
    3    21        ASSIGN                                                   !0, $8
   16    22        INIT_FCALL                                               'print_r'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.22 ms | 1395 KiB | 19 Q