3v4l.org

run code in 300+ PHP versions simultaneously
<?php $userInfo = array('sex' => 2, 'city' => '0'); function isNull($Id, $userInfo){ If($userInfo[$id] == 0){ echo "Не указано"; } else{ echo $userInfo[$id]; } } isNull("city", $userInfo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6jDeJ
function name:  (null)
number of ops:  6
compiled vars:  !0 = $userInfo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   12     1        INIT_FCALL                                               'isnull'
          2        SEND_VAL                                                 'city'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0          
          5      > 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 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6jDeJ
function name:  isNull
number of ops:  10
compiled vars:  !0 = $Id, !1 = $userInfo, !2 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        FETCH_DIM_R                                      ~3      !1, !2
          3        IS_EQUAL                                                 ~3, 0
          4      > JMPZ                                                     ~4, ->7
    5     5    >   ECHO                                                     '%D0%9D%D0%B5+%D1%83%D0%BA%D0%B0%D0%B7%D0%B0%D0%BD%D0%BE'
          6      > JMP                                                      ->9
    8     7    >   FETCH_DIM_R                                      ~5      !1, !2
          8        ECHO                                                     ~5
   10     9    > > RETURN                                                   null

End of function isnull

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.99 ms | 1389 KiB | 14 Q