3v4l.org

run code in 300+ PHP versions simultaneously
<?php $userInfo = array('sex' => 2, 'city' => '0'); function isNull($userInfo, $Id){ If($userInfo[$id] == 0){ echo "Не указано"; } else{ echo $userInfo[$id]; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nailX
function name:  (null)
number of ops:  2
compiled vars:  !0 = $userInfo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   10     1      > 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/nailX
function name:  isNull
number of ops:  10
compiled vars:  !0 = $userInfo, !1 = $Id, !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      !0, !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      !0, !2
          8        ECHO                                                     ~5
   10     9    > > RETURN                                                   null

End of function isnull

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.61 ms | 1393 KiB | 13 Q