3v4l.org

run code in 300+ PHP versions simultaneously
<?php $secureprefix = 'fragment_'; $json = json_encode(str_repeat(chr(8), strlen($secureprefix)) . 'delete_instance'); $decode = json_decode($json); $result = $secureprefix . $decode; echo "Secure prefixed call: $result \n"; var_dump(component_callback('mod_forum', $result, array(FEATURE_COMPLETION_TRACKS_VIEWS)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9RBs6
function name:  (null)
number of ops:  32
compiled vars:  !0 = $secureprefix, !1 = $json, !2 = $decode, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'fragment_'
    4     1        INIT_FCALL                                               'json_encode'
          2        INIT_FCALL                                               'str_repeat'
          3        SEND_VAL                                                 '%08'
          4        STRLEN                                           ~5      !0
          5        SEND_VAL                                                 ~5
          6        DO_ICALL                                         $6      
          7        CONCAT                                           ~7      $6, 'delete_instance'
          8        SEND_VAL                                                 ~7
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !1, $8
    6    11        INIT_FCALL                                               'json_decode'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $10     
         14        ASSIGN                                                   !2, $10
    7    15        CONCAT                                           ~12     !0, !2
         16        ASSIGN                                                   !3, ~12
    8    17        ROPE_INIT                                     3  ~15     'Secure+prefixed+call%3A+'
         18        ROPE_ADD                                      1  ~15     ~15, !3
         19        ROPE_END                                      2  ~14     ~15, '+%0A'
         20        ECHO                                                     ~14
    9    21        INIT_FCALL                                               'var_dump'
         22        INIT_FCALL_BY_NAME                                       'component_callback'
         23        SEND_VAL_EX                                              'mod_forum'
         24        SEND_VAR_EX                                              !3
         25        FETCH_CONSTANT                                   ~17     'FEATURE_COMPLETION_TRACKS_VIEWS'
         26        INIT_ARRAY                                       ~18     ~17
         27        SEND_VAL_EX                                              ~18
         28        DO_FCALL                                      0  $19     
         29        SEND_VAR                                                 $19
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.88 ms | 1388 KiB | 21 Q