3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user = 'user'; $pass = 'password'; $productsModel = 'productsModel'; $products_id = 'products_id'; $imageName = 'imageName'; $image = 'image'; $imageName2 = 'imageName2'; $image2 = 'image2'; $data = array( "function" => "setArticleImages", "paras" => array( "user" => $user, "pass" => $pass, "product_model" => $productsModel, "images" => array( "products_id" => $products_id, "image_name" => $imageName, "image" => $image, "products_images" => array( array( "products_id" => $products_id, "image_name" => $imageName2, "image" => $image2, ) ), ) ) ); $data = json_encode($data, JSON_PRETTY_PRINT); echo $data;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fon4Y
function name:  (null)
number of ops:  30
compiled vars:  !0 = $user, !1 = $pass, !2 = $productsModel, !3 = $products_id, !4 = $imageName, !5 = $image, !6 = $imageName2, !7 = $image2, !8 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'user'
    3     1        ASSIGN                                                   !1, 'password'
    4     2        ASSIGN                                                   !2, 'productsModel'
    5     3        ASSIGN                                                   !3, 'products_id'
    6     4        ASSIGN                                                   !4, 'imageName'
    7     5        ASSIGN                                                   !5, 'image'
    8     6        ASSIGN                                                   !6, 'imageName2'
    9     7        ASSIGN                                                   !7, 'image2'
   12     8        INIT_ARRAY                                       ~17     'setArticleImages', 'function'
   14     9        INIT_ARRAY                                       ~18     !0, 'user'
   15    10        ADD_ARRAY_ELEMENT                                ~18     !1, 'pass'
   16    11        ADD_ARRAY_ELEMENT                                ~18     !2, 'product_model'
   18    12        INIT_ARRAY                                       ~19     !3, 'products_id'
   19    13        ADD_ARRAY_ELEMENT                                ~19     !4, 'image_name'
   20    14        ADD_ARRAY_ELEMENT                                ~19     !5, 'image'
   23    15        INIT_ARRAY                                       ~20     !3, 'products_id'
   24    16        ADD_ARRAY_ELEMENT                                ~20     !6, 'image_name'
   25    17        ADD_ARRAY_ELEMENT                                ~20     !7, 'image'
         18        INIT_ARRAY                                       ~21     ~20
         19        ADD_ARRAY_ELEMENT                                ~19     ~21, 'products_images'
         20        ADD_ARRAY_ELEMENT                                ~18     ~19, 'images'
         21        ADD_ARRAY_ELEMENT                                ~17     ~18, 'paras'
   11    22        ASSIGN                                                   !8, ~17
   31    23        INIT_FCALL                                               'json_encode'
         24        SEND_VAR                                                 !8
         25        SEND_VAL                                                 128
         26        DO_ICALL                                         $23     
         27        ASSIGN                                                   !8, $23
   32    28        ECHO                                                     !8
   33    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.8 ms | 999 KiB | 14 Q