3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo json_encode([ "id" => $user->id, "trial" => $trial, "expires" => $time_left, "devices" => [ "current" => (int)$count, "max" => 6 ], "referral_url" => $this->MakeUserReferralUrl($user->id), "settings" => $settings, "ip_address" => $ip, "latitude" => $latitude, "longitude" => $longitude, "country_code" => $countryCode, ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/flBZs
function name:  (null)
number of ops:  25
compiled vars:  !0 = $user, !1 = $trial, !2 = $time_left, !3 = $count, !4 = $settings, !5 = $ip, !6 = $latitude, !7 = $longitude, !8 = $countryCode
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_encode'
    4     1        FETCH_OBJ_R                                      ~9      !0, 'id'
          2        INIT_ARRAY                                       ~10     ~9, 'id'
    5     3        ADD_ARRAY_ELEMENT                                ~10     !1, 'trial'
    6     4        ADD_ARRAY_ELEMENT                                ~10     !2, 'expires'
    8     5        CAST                                          4  ~11     !3
          6        INIT_ARRAY                                       ~12     ~11, 'current'
    9     7        ADD_ARRAY_ELEMENT                                ~12     6, 'max'
          8        ADD_ARRAY_ELEMENT                                ~10     ~12, 'devices'
   11     9        FETCH_THIS                                       $13     
         10        INIT_METHOD_CALL                                         $13, 'MakeUserReferralUrl'
         11        CHECK_FUNC_ARG                                           
         12        FETCH_OBJ_FUNC_ARG                               $14     !0, 'id'
         13        SEND_FUNC_ARG                                            $14
         14        DO_FCALL                                      0  $15     
         15        ADD_ARRAY_ELEMENT                                ~10     $15, 'referral_url'
   12    16        ADD_ARRAY_ELEMENT                                ~10     !4, 'settings'
   13    17        ADD_ARRAY_ELEMENT                                ~10     !5, 'ip_address'
   14    18        ADD_ARRAY_ELEMENT                                ~10     !6, 'latitude'
   15    19        ADD_ARRAY_ELEMENT                                ~10     !7, 'longitude'
   16    20        ADD_ARRAY_ELEMENT                                ~10     !8, 'country_code'
         21        SEND_VAL                                                 ~10
         22        DO_ICALL                                         $16     
         23        ECHO                                                     $16
   17    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.59 ms | 1387 KiB | 15 Q