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"}'); 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/CLSkU
function name:  (null)
number of ops:  22
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        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
   14     4        INIT_FCALL                                               'print_r'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
   16     7        NEW                                              $5      'Foo'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $5
   18    10        FETCH_OBJ_R                                      ~8      !1, !0
         11        FETCH_DIM_R                                      ~9      ~8, 'callback'
         12        INIT_DYNAMIC_CALL                                        ~9
         13        CHECK_FUNC_ARG                                           
         14        FETCH_DIM_FUNC_ARG                               $10     !0, 'data'
         15        SEND_FUNC_ARG                                            $10
         16        CHECK_FUNC_ARG                                           
         17        FETCH_DIM_FUNC_ARG                               $11     !0, 'flag'
         18        SEND_FUNC_ARG                                            $11
         19        DO_FCALL                                      0  $12     
         20        ECHO                                                     $12
         21      > RETURN                                                   1

Class Foo:
Function serverfamiliesversions:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CLSkU
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:
151.03 ms | 1012 KiB | 15 Q