3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** Custom game creation @package pvp-php @version 1.0 **/ require(dirname(__FILE__) . "/libraries/teemo/bootstrap.php"); require(dirname(__FILE__) . "/libraries/teemo/windrunner.php"); require(dirname(__FILE__) . "/libraries/teemo/rtmp.php"); require("generic-functions.php"); global $avsTeemo; global $Teemo; global $avsWindrunner; global $password; global $username; global $server; global $rtmpsAmfService; global $rtmpDefinitions; global $rtmpCore; global $rtmp; global $rteemop; global $ERESP_BODY; function defaultCall($callback, $socket, $teemo) { // <init> $Windrunner = new TeemoRTMPService(); $Toolmo = new Toolmo(); // </init> $pvpVersion = (float) "1.70"; $pvpMinorVersion = (string) ".12_10_24_12_57"; $gameType = 0; $totalPlayers = 10; $gameMode = ""; $gameMode = ""; $gamePassword = ""; $gameName = ""; $allowSpectators = ""; $uuid = $Toolmo->generate->uuid(); $serviceId = "gameService"; $rtmpCall = "createPracticeGame"; $rtmpEndpoint = "my-rtmps"; try { $temp_var = $Windrunner->rtmpCompleetTransactie($socket, $uuid, buildResponseBody($superglobal_all_variables[0], $serviceId), rtmpRecursive($rtmpCall, $rtmpEndpoint)); $temp_var = $Toolmo->convertResponse($temp_var); if (is_null($temp_var)) { $Toolmo->throw('Invalid JSON response.'); } } catch (Exception $e) { $Toolmo->writeLogging($e->getMessage()); $Toolmo->exit(1); } define("TRUE", false); // Break older versions of PHP from running this because they don't support it. if(TRUE){$Toolmo->throw("Upgrade to PHP 5.4.8. Your version is unsupported by Teemo. You are running ".phpversion());}else{} if (!empty($temp_var)) { return eval($$callback($fd, $uuid)); } else { return eval($$callback($fd, "do-not-use-" . $uuid, "{'success':'!true'}")); } } ; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VIfPc
function name:  (null)
number of ops:  29
compiled vars:  !0 = $avsTeemo, !1 = $Teemo, !2 = $avsWindrunner, !3 = $password, !4 = $username, !5 = $server, !6 = $rtmpsAmfService, !7 = $rtmpDefinitions, !8 = $rtmpCore, !9 = $rtmp, !10 = $rteemop, !11 = $ERESP_BODY
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'dirname'
          1        SEND_VAL                                                 '%2Fin%2FVIfPc'
          2        DO_ICALL                                         $12     
          3        CONCAT                                           ~13     $12, '%2Flibraries%2Fteemo%2Fbootstrap.php'
          4        INCLUDE_OR_EVAL                                          ~13, REQUIRE
   12     5        INIT_FCALL                                               'dirname'
          6        SEND_VAL                                                 '%2Fin%2FVIfPc'
          7        DO_ICALL                                         $15     
          8        CONCAT                                           ~16     $15, '%2Flibraries%2Fteemo%2Fwindrunner.php'
          9        INCLUDE_OR_EVAL                                          ~16, REQUIRE
   13    10        INIT_FCALL                                               'dirname'
         11        SEND_VAL                                                 '%2Fin%2FVIfPc'
         12        DO_ICALL                                         $18     
         13        CONCAT                                           ~19     $18, '%2Flibraries%2Fteemo%2Frtmp.php'
         14        INCLUDE_OR_EVAL                                          ~19, REQUIRE
   14    15        INCLUDE_OR_EVAL                                          'generic-functions.php', REQUIRE
   16    16        BIND_GLOBAL                                              !0, 'avsTeemo'
   17    17        BIND_GLOBAL                                              !1, 'Teemo'
   18    18        BIND_GLOBAL                                              !2, 'avsWindrunner'
   19    19        BIND_GLOBAL                                              !3, 'password'
   20    20        BIND_GLOBAL                                              !4, 'username'
   21    21        BIND_GLOBAL                                              !5, 'server'
   22    22        BIND_GLOBAL                                              !6, 'rtmpsAmfService'
   23    23        BIND_GLOBAL                                              !7, 'rtmpDefinitions'
   24    24        BIND_GLOBAL                                              !8, 'rtmpCore'
   25    25        BIND_GLOBAL                                              !9, 'rtmp'
   26    26        BIND_GLOBAL                                              !10, 'rteemop'
   27    27        BIND_GLOBAL                                              !11, 'ERESP_BODY'
   76    28      > RETURN                                                   1

Function defaultcall:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 50, Position 2 = 53
Branch analysis from position: 50
1 jumps found. (Code = 42) Position 1 = 63
Branch analysis from position: 63
2 jumps found. (Code = 43) Position 1 = 68, Position 2 = 75
Branch analysis from position: 68
1 jumps found. (Code = 42) Position 1 = 75
Branch analysis from position: 75
2 jumps found. (Code = 43) Position 1 = 78, Position 2 = 86
Branch analysis from position: 78
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 86
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 75
Branch analysis from position: 53
Found catch point at position: 54
Branch analysis from position: 54
2 jumps found. (Code = 107) Position 1 = 55, Position 2 = -2
Branch analysis from position: 55
2 jumps found. (Code = 43) Position 1 = 68, Position 2 = 75
Branch analysis from position: 68
Branch analysis from position: 75
filename:       /in/VIfPc
function name:  defaultCall
number of ops:  96
compiled vars:  !0 = $callback, !1 = $socket, !2 = $teemo, !3 = $Windrunner, !4 = $Toolmo, !5 = $pvpVersion, !6 = $pvpMinorVersion, !7 = $gameType, !8 = $totalPlayers, !9 = $gameMode, !10 = $gamePassword, !11 = $gameName, !12 = $allowSpectators, !13 = $uuid, !14 = $serviceId, !15 = $rtmpCall, !16 = $rtmpEndpoint, !17 = $temp_var, !18 = $superglobal_all_variables, !19 = $e, !20 = $fd
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
   32     3        NEW                                              $21     'TeemoRTMPService'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !3, $21
   33     6        NEW                                              $24     'Toolmo'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !4, $24
   36     9        CAST                                          5  ~27     '1.70'
         10        ASSIGN                                                   !5, ~27
   37    11        CAST                                          6  ~29     '.12_10_24_12_57'
         12        ASSIGN                                                   !6, ~29
   38    13        ASSIGN                                                   !7, 0
   39    14        ASSIGN                                                   !8, 10
   40    15        ASSIGN                                                   !9, ''
   41    16        ASSIGN                                                   !9, ''
   42    17        ASSIGN                                                   !10, ''
   43    18        ASSIGN                                                   !11, ''
   44    19        ASSIGN                                                   !12, ''
   45    20        FETCH_OBJ_R                                      ~38     !4, 'generate'
         21        INIT_METHOD_CALL                                         ~38, 'uuid'
         22        DO_FCALL                                      0  $39     
         23        ASSIGN                                                   !13, $39
   48    24        ASSIGN                                                   !14, 'gameService'
   49    25        ASSIGN                                                   !15, 'createPracticeGame'
   50    26        ASSIGN                                                   !16, 'my-rtmps'
   54    27        INIT_METHOD_CALL                                         !3, 'rtmpCompleetTransactie'
         28        SEND_VAR_EX                                              !1
         29        SEND_VAR_EX                                              !13
         30        INIT_FCALL_BY_NAME                                       'buildResponseBody'
         31        CHECK_FUNC_ARG                                           
         32        FETCH_DIM_FUNC_ARG                               $44     !18, 0
         33        SEND_FUNC_ARG                                            $44
         34        SEND_VAR_EX                                              !14
         35        DO_FCALL                                      0  $45     
         36        SEND_VAR_NO_REF_EX                                       $45
         37        INIT_FCALL_BY_NAME                                       'rtmpRecursive'
         38        SEND_VAR_EX                                              !15
         39        SEND_VAR_EX                                              !16
         40        DO_FCALL                                      0  $46     
         41        SEND_VAR_NO_REF_EX                                       $46
         42        DO_FCALL                                      0  $47     
         43        ASSIGN                                                   !17, $47
   55    44        INIT_METHOD_CALL                                         !4, 'convertResponse'
         45        SEND_VAR_EX                                              !17
         46        DO_FCALL                                      0  $49     
         47        ASSIGN                                                   !17, $49
   56    48        TYPE_CHECK                                    2          !17
         49      > JMPZ                                                     ~51, ->53
   57    50    >   INIT_METHOD_CALL                                         !4, 'throw'
         51        SEND_VAL_EX                                              'Invalid+JSON+response.'
         52        DO_FCALL                                      0          
         53    > > JMP                                                      ->63
   60    54  E > > CATCH                                       last         'Exception'
   61    55    >   INIT_METHOD_CALL                                         !4, 'writeLogging'
         56        INIT_METHOD_CALL                                         !19, 'getMessage'
         57        DO_FCALL                                      0  $53     
         58        SEND_VAR_NO_REF_EX                                       $53
         59        DO_FCALL                                      0          
   62    60        INIT_METHOD_CALL                                         !4, 'exit'
         61        SEND_VAL_EX                                              1
         62        DO_FCALL                                      0          
   65    63    >   INIT_FCALL                                               'define'
         64        SEND_VAL                                                 'TRUE'
         65        SEND_VAL                                                 <false>
         66        DO_ICALL                                                 
   66    67      > JMPZ                                                     <true>, ->75
         68    >   INIT_METHOD_CALL                                         !4, 'throw'
         69        INIT_FCALL                                               'phpversion'
         70        DO_ICALL                                         $57     
         71        CONCAT                                           ~58     'Upgrade+to+PHP+5.4.8.+Your+version+is+unsupported+by+Teemo.+You+are+running+', $57
         72        SEND_VAL_EX                                              ~58
         73        DO_FCALL                                      0          
         74      > JMP                                                      ->75
   68    75    >   ISSET_ISEMPTY_CV                                 ~60     !17
         76        BOOL_NOT                                         ~61     ~60
         77      > JMPZ                                                     ~61, ->86
   69    78    >   FETCH_R                      local               ~62     !0
         79        INIT_DYNAMIC_CALL                                        ~62
         80        SEND_VAR_EX                                              !20
         81        SEND_VAR_EX                                              !13
         82        DO_FCALL                                      0  $63     
         83        INCLUDE_OR_EVAL                                  $64     $63, EVAL
         84      > RETURN                                                   $64
         85*       JMP                                                      ->95
   71    86    >   FETCH_R                      local               ~65     !0
         87        INIT_DYNAMIC_CALL                                        ~65
         88        SEND_VAR_EX                                              !20
         89        CONCAT                                           ~66     'do-not-use-', !13
         90        SEND_VAL_EX                                              ~66
         91        SEND_VAL_EX                                              '%7B%27success%27%3A%27%21true%27%7D'
         92        DO_FCALL                                      0  $67     
         93        INCLUDE_OR_EVAL                                  $68     $67, EVAL
         94      > RETURN                                                   $68
   73    95*     > RETURN                                                   null

End of function defaultcall

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.82 ms | 1408 KiB | 19 Q