3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function ServerFamiliesVersions($param1, $param2) { echo $param1; echo $param2; return '1!!'; } } $snac = json_decode('{"type":1,"subtype":24,"flag":0,"request_id":2155050054,"data":"\u0000\u0001\u0000\u0004\u0000\u0002\u0000\u0001\u0000\u0003\u0000\u0001\u0000\u0004\u0000\u0001\u0000\b\u0000\u0001\u0000\t\u0000\u0001\u0000\u000b\u0000\u0001\u0000\u0013\u0000\u0006\u0000\u0015\u0000\u0002\u0000\"\u0000\u0001\u0000%\u0000\u0001","callback":"ServerFamiliesVersions"}', true); echo gettype($snac) . "\n"; echo gettype($snac['callback']) . "\n"; print_r($snac); $foo = new Foo(); echo $foo->{$snac['callback']}($snac['data'], $snac['flag']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HlOoA
function name:  (null)
number of ops:  29
compiled vars:  !0 = $snac, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%7B%22type%22%3A1%2C%22subtype%22%3A24%2C%22flag%22%3A0%2C%22request_id%22%3A2155050054%2C%22data%22%3A%22%5Cu0000%5Cu0001%5Cu0000%5Cu0004%5Cu0000%5Cu0002%5Cu0000%5Cu0001%5Cu0000%5Cu0003%5Cu0000%5Cu0001%5Cu0000%5Cu0004%5Cu0000%5Cu0001%5Cu0000%5Cb%5Cu0000%5Cu0001%5Cu0000%5Ct%5Cu0000%5Cu0001%5Cu0000%5Cu000b%5Cu0000%5Cu0001%5Cu0000%5Cu0013%5Cu0000%5Cu0006%5Cu0000%5Cu0015%5Cu0000%5Cu0002%5Cu0000%5C%22%5Cu0000%5Cu0001%5Cu0000%25%5Cu0000%5Cu0001%22%2C%22callback%22%3A%22ServerFamiliesVersions%22%7D'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
   14     5        GET_TYPE                                         ~4      !0
          6        CONCAT                                           ~5      ~4, '%0A'
          7        ECHO                                                     ~5
   15     8        FETCH_DIM_R                                      ~6      !0, 'callback'
          9        GET_TYPE                                         ~7      ~6
         10        CONCAT                                           ~8      ~7, '%0A'
         11        ECHO                                                     ~8
   17    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
   19    15        NEW                                              $10     'Foo'
         16        DO_FCALL                                      0          
         17        ASSIGN                                                   !1, $10
   21    18        FETCH_DIM_R                                      ~13     !0, 'callback'
         19        INIT_METHOD_CALL                                         !1, ~13
         20        CHECK_FUNC_ARG                                           
         21        FETCH_DIM_FUNC_ARG                               $14     !0, 'data'
         22        SEND_FUNC_ARG                                            $14
         23        CHECK_FUNC_ARG                                           
         24        FETCH_DIM_FUNC_ARG                               $15     !0, 'flag'
         25        SEND_FUNC_ARG                                            $15
         26        DO_FCALL                                      0  $16     
         27        ECHO                                                     $16
         28      > RETURN                                                   1

Class Foo:
Function serverfamiliesversions:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HlOoA
function name:  ServerFamiliesVersions
number of ops:  6
compiled vars:  !0 = $param1, !1 = $param2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        ECHO                                                     !0
    7     3        ECHO                                                     !1
    8     4      > RETURN                                                   '1%21%21'
    9     5*     > RETURN                                                   null

End of function serverfamiliesversions

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
196.23 ms | 1004 KiB | 15 Q