3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array(); $test["abc"] = true; $test["abc"] = $test["abc"] ? $test["abc"] : false; $data = json_encode($test); $test = json_decode($data); echo $test;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/51oit
function name:  (null)
number of ops:  21
compiled vars:  !0 = $test, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0, 'abc'
          2        OP_DATA                                                  <true>
    5     3        FETCH_DIM_R                                      ~5      !0, 'abc'
          4      > JMPZ                                                     ~5, ->8
          5    >   FETCH_DIM_R                                      ~6      !0, 'abc'
          6        QM_ASSIGN                                        ~7      ~6
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~7      <false>
          9    >   ASSIGN_DIM                                               !0, 'abc'
         10        OP_DATA                                                  ~7
    6    11        INIT_FCALL                                               'json_encode'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $8      
         14        ASSIGN                                                   !1, $8
    7    15        INIT_FCALL                                               'json_decode'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $10     
         18        ASSIGN                                                   !0, $10
    8    19        ECHO                                                     !0
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.28 ms | 1386 KiB | 17 Q