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); $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/qCe9M
function name:  (null)
number of ops:  25
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        ASSIGN_DIM                                               !3, 'f_name'
          8        OP_DATA                                                  $8
    7     9        INIT_FCALL                                               'json_decode'
         10        SEND_VAR                                                 !1
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $10     
         13        ASSIGN_DIM                                               !3, 'l_name'
         14        OP_DATA                                                  $10
    8    15        INIT_FCALL                                               'json_decode'
         16        SEND_VAR                                                 !2
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                         $12     
         19        ASSIGN_DIM                                               !3, 'p_no'
         20        OP_DATA                                                  $12
   10    21        INIT_FCALL                                               'print_r'
         22        SEND_VAR                                                 !3
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.88 ms | 1387 KiB | 17 Q