3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a='1'; $b='2'; $c = json_ecode(array($a,$b)); $d = json_decode($c); print_r($d);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XCjVi
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1'
    4     1        ASSIGN                                                   !1, '2'
    5     2        INIT_FCALL_BY_NAME                                       'json_ecode'
          3        INIT_ARRAY                                       ~6      !0
          4        ADD_ARRAY_ELEMENT                                ~6      !1
          5        SEND_VAL_EX                                              ~6
          6        DO_FCALL                                      0  $7      
          7        ASSIGN                                                   !2, $7
    6     8        INIT_FCALL                                               'json_decode'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $9      
         11        ASSIGN                                                   !3, $9
    7    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !3
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.03 ms | 1394 KiB | 17 Q