3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first_name = '{"first_name" : "Parag"}'; $last_name = '{"last_name" : "Tyagi"}'; $phone_number = '{"phone_number" : "9999999999"}'; $data['f_name'] = json_decode($first_name, TRUE)['first_name']; $data['l_name'] = json_decode($last_name, TRUE); $data['p_no'] = json_decode($phone_number, TRUE); print_r($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4LOlQ
function name:  (null)
number of ops:  26
compiled vars:  !0 = $first_name, !1 = $last_name, !2 = $phone_number, !3 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%22first_name%22+%3A+%22Parag%22%7D'
    3     1        ASSIGN                                                   !1, '%7B%22last_name%22+%3A+%22Tyagi%22%7D'
    4     2        ASSIGN                                                   !2, '%7B%22phone_number%22+%3A+%229999999999%22%7D'
    6     3        INIT_FCALL                                               'json_decode'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                         $8      
          7        FETCH_DIM_R                                      ~9      $8, 'first_name'
          8        ASSIGN_DIM                                               !3, 'f_name'
          9        OP_DATA                                                  ~9
    7    10        INIT_FCALL                                               'json_decode'
         11        SEND_VAR                                                 !1
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $11     
         14        ASSIGN_DIM                                               !3, 'l_name'
         15        OP_DATA                                                  $11
    8    16        INIT_FCALL                                               'json_decode'
         17        SEND_VAR                                                 !2
         18        SEND_VAL                                                 <true>
         19        DO_ICALL                                         $13     
         20        ASSIGN_DIM                                               !3, 'p_no'
         21        OP_DATA                                                  $13
   10    22        INIT_FCALL                                               'print_r'
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.2 ms | 1395 KiB | 17 Q