3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Cache { private static $URL_CACHE; public function cacheUrl($url, $entityId) { echo '<br>caching '.$url.' as '.$entityId . '<br />'; self::$URL_CACHE[$url]=$entityId; echo '<br>Cache content:<br>'; foreach (self::$URL_CACHE as $key => $value) { echo 'Key: '.$key.' Value: '.$value.'<br />'; } } } $cache = new Cache(); $cache->cacheUrl('uri1', 'ent1'); $ya_cache = new Cache(); $ya_cache->cacheUrl('uri2', 'ent2');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WF4QA
function name:  (null)
number of ops:  15
compiled vars:  !0 = $cache, !1 = $ya_cache
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $2      'Cache'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   20     3        INIT_METHOD_CALL                                         !0, 'cacheUrl'
          4        SEND_VAL_EX                                              'uri1'
          5        SEND_VAL_EX                                              'ent1'
          6        DO_FCALL                                      0          
   22     7        NEW                                              $6      'Cache'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $6
   23    10        INIT_METHOD_CALL                                         !1, 'cacheUrl'
         11        SEND_VAL_EX                                              'uri2'
         12        SEND_VAL_EX                                              'ent2'
         13        DO_FCALL                                      0          
         14      > RETURN                                                   1

Class Cache:
Function cacheurl:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 21
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 21
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/WF4QA
function name:  cacheUrl
number of ops:  23
compiled vars:  !0 = $url, !1 = $entityId, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        CONCAT                                           ~4      '%3Cbr%3Ecaching+', !0
          3        CONCAT                                           ~5      ~4, '+as+'
          4        CONCAT                                           ~6      ~5, !1
          5        CONCAT                                           ~7      ~6, '%3Cbr+%2F%3E'
          6        ECHO                                                     ~7
    8     7        FETCH_STATIC_PROP_W          global              $8      'URL_CACHE'
          8        ASSIGN_DIM                                               $8, !0
          9        OP_DATA                                                  !1
   10    10        ECHO                                                     '%3Cbr%3ECache+content%3A%3Cbr%3E'
   11    11        FETCH_STATIC_PROP_R          unknown             ~10     'URL_CACHE'
         12      > FE_RESET_R                                       $11     ~10, ->21
         13    > > FE_FETCH_R                                       ~12     $11, !2, ->21
         14    >   ASSIGN                                                   !3, ~12
   12    15        CONCAT                                           ~14     'Key%3A+', !3
         16        CONCAT                                           ~15     ~14, '+Value%3A+'
         17        CONCAT                                           ~16     ~15, !2
         18        CONCAT                                           ~17     ~16, '%3Cbr+%2F%3E'
         19        ECHO                                                     ~17
   11    20      > JMP                                                      ->13
         21    >   FE_FREE                                                  $11
   14    22      > RETURN                                                   null

End of function cacheurl

End of class Cache.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.58 ms | 1403 KiB | 13 Q