3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isNull($id, $userInfo){ If($userInfo[$id] == 0){ $res = "Не указано"; } else{ $res = $userInfo["$id"]; } return $res; } $city = isNull($userInfo,"city")->title;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Sc6bc
function name:  (null)
number of ops:  7
compiled vars:  !0 = $city, !1 = $userInfo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'isnull'
          1        SEND_VAR                                                 !1
          2        SEND_VAL                                                 'city'
          3        DO_FCALL                                      0  $2      
          4        FETCH_OBJ_R                                      ~3      $2, 'title'
          5        ASSIGN                                                   !0, ~3
          6      > RETURN                                                   1

Function isnull:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Sc6bc
function name:  isNull
number of ops:  12
compiled vars:  !0 = $id, !1 = $userInfo, !2 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    3     2        FETCH_DIM_R                                      ~3      !1, !0
          3        IS_EQUAL                                                 ~3, 0
          4      > JMPZ                                                     ~4, ->7
    4     5    >   ASSIGN                                                   !2, '%D0%9D%D0%B5+%D1%83%D0%BA%D0%B0%D0%B7%D0%B0%D0%BD%D0%BE'
          6      > JMP                                                      ->10
    7     7    >   CAST                                          6  ~6      !0
          8        FETCH_DIM_R                                      ~7      !1, ~6
          9        ASSIGN                                                   !2, ~7
    9    10    > > RETURN                                                   !2
   10    11*     > RETURN                                                   null

End of function isnull

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.33 ms | 1398 KiB | 14 Q