3v4l.org

run code in 300+ PHP versions simultaneously
<?php function secupress_cache_data( $key, $data = 'trolilol' ) { static $datas = array(); if ( $data !== 'trolilol' ) { $datas[ $key ] = $data; } var_dump( $datas ); return isset( $datas[ $key ] ) ? $datas[ $key ] : 'KO!!'; } secupress_cache_data( 'foo', '123' ); secupress_cache_data( 'bar', null ); secupress_cache_data( 'qux', 'toto' );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q6o8t
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'secupress_cache_data'
          1        SEND_VAL                                                 'foo'
          2        SEND_VAL                                                 '123'
          3        DO_FCALL                                      0          
   12     4        INIT_FCALL                                               'secupress_cache_data'
          5        SEND_VAL                                                 'bar'
          6        SEND_VAL                                                 null
          7        DO_FCALL                                      0          
   13     8        INIT_FCALL                                               'secupress_cache_data'
          9        SEND_VAL                                                 'qux'
         10        SEND_VAL                                                 'toto'
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Function secupress_cache_data:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/q6o8t
function name:  secupress_cache_data
number of ops:  18
compiled vars:  !0 = $key, !1 = $data, !2 = $datas
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      'trolilol'
    4     2        BIND_STATIC                                              !2
    5     3        IS_NOT_IDENTICAL                                         !1, 'trolilol'
          4      > JMPZ                                                     ~3, ->7
    6     5    >   ASSIGN_DIM                                               !2, !0
          6        OP_DATA                                                  !1
    8     7    >   INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
    9    10        ISSET_ISEMPTY_DIM_OBJ                         0          !2, !0
         11      > JMPZ                                                     ~6, ->15
         12    >   FETCH_DIM_R                                      ~7      !2, !0
         13        QM_ASSIGN                                        ~8      ~7
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~8      'KO%21%21'
         16    > > RETURN                                                   ~8
   10    17*     > RETURN                                                   null

End of function secupress_cache_data

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.97 ms | 1399 KiB | 18 Q