3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getEntry(string $title, array $array) { if (array_key_exists($title, $array)) { return $title . ' ifadesinin değeri: ' . $array[$title] . '<br>'; } } $entries = []; $entries['nesne'] = 'Sınıf Örneği'; echo getEntry('nesne', $entries); $entries['şey'] = 'İsimsiz nesne'; echo getEntry('şey', $entries); print_r($entries); echo "<br>"; $entries['şey'] = null; echo getEntry('şey', $entries);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G4Nu0
function name:  (null)
number of ops:  27
compiled vars:  !0 = $entries
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, <array>
   11     1        ASSIGN_DIM                                               !0, 'nesne'
          2        OP_DATA                                                  'S%C4%B1n%C4%B1f+%C3%96rne%C4%9Fi'
   13     3        INIT_FCALL                                               'getentry'
          4        SEND_VAL                                                 'nesne'
          5        SEND_VAR                                                 !0
          6        DO_FCALL                                      0  $3      
          7        ECHO                                                     $3
   15     8        ASSIGN_DIM                                               !0, '%C5%9Fey'
          9        OP_DATA                                                  '%C4%B0simsiz+nesne'
   17    10        INIT_FCALL                                               'getentry'
         11        SEND_VAL                                                 '%C5%9Fey'
         12        SEND_VAR                                                 !0
         13        DO_FCALL                                      0  $5      
         14        ECHO                                                     $5
   19    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
   21    18        ECHO                                                     '%3Cbr%3E'
   23    19        ASSIGN_DIM                                               !0, '%C5%9Fey'
         20        OP_DATA                                                  null
   25    21        INIT_FCALL                                               'getentry'
         22        SEND_VAL                                                 '%C5%9Fey'
         23        SEND_VAR                                                 !0
         24        DO_FCALL                                      0  $8      
         25        ECHO                                                     $8
         26      > RETURN                                                   1

Function getentry:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G4Nu0
function name:  getEntry
number of ops:  10
compiled vars:  !0 = $title, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        ARRAY_KEY_EXISTS                                         !0, !1
          3      > JMPZ                                                     ~2, ->9
    6     4    >   CONCAT                                           ~3      !0, '+ifadesinin+de%C4%9Feri%3A+'
          5        FETCH_DIM_R                                      ~4      !1, !0
          6        CONCAT                                           ~5      ~3, ~4
          7        CONCAT                                           ~6      ~5, '%3Cbr%3E'
          8      > RETURN                                                   ~6
    8     9    > > RETURN                                                   null

End of function getentry

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.69 ms | 1403 KiB | 18 Q