3v4l.org

run code in 300+ PHP versions simultaneously
<?php $R = new T(); $R->SetRequests(""); var_dump($R); class T { public $Requests = array(); public function SetRequests($Requests) { if(is_array($Requests)) { $this->Requests = $Requests; return true; } elseif(preg_match("/^(µ[^µ~]*~[01]µ)*$/i", $Requests)) { $this->Requests = array(); $Requests = explode("µµ", mb_substr($Requests, 1, -1, "UTF-8")); foreach($Requests as $Request) { $Req = explode("~", $Request); $this->Requests[] = array("Subject" => strval($Req[0]), "Active" => intval($Req[1])); } return true; } return false; } public function GetRequests() { return $this->Requests; } public function ToArray() { return array("Requests" => $this->Requests); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0Zc3c
function name:  (null)
number of ops:  10
compiled vars:  !0 = $R
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'T'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    3     3        INIT_METHOD_CALL                                         !0, 'SetRequests'
          4        SEND_VAL_EX                                              ''
          5        DO_FCALL                                      0          
    4     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
   42     9      > RETURN                                                   1

Class T:
Function setrequests:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 44
Branch analysis from position: 12
2 jumps found. (Code = 77) Position 1 = 26, Position 2 = 42
Branch analysis from position: 26
2 jumps found. (Code = 78) Position 1 = 27, Position 2 = 42
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 42
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0Zc3c
function name:  SetRequests
number of ops:  46
compiled vars:  !0 = $Requests, !1 = $Request, !2 = $Req
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   14     1        TYPE_CHECK                                  128          !0
          2      > JMPZ                                                     ~3, ->7
   16     3    >   ASSIGN_OBJ                                               'Requests'
          4        OP_DATA                                                  !0
   17     5      > RETURN                                                   <true>
          6*       JMP                                                      ->44
   20     7    >   INIT_FCALL                                               'preg_match'
          8        SEND_VAL                                                 '%2F%5E%28%C2%B5%5B%5E%C2%B5%7E%5D%2A%7E%5B01%5D%C2%B5%29%2A%24%2Fi'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $5      
         11      > JMPZ                                                     $5, ->44
   22    12    >   ASSIGN_OBJ                                               'Requests'
         13        OP_DATA                                                  <array>
   23    14        INIT_FCALL                                               'explode'
         15        SEND_VAL                                                 '%C2%B5%C2%B5'
         16        INIT_FCALL                                               'mb_substr'
         17        SEND_VAR                                                 !0
         18        SEND_VAL                                                 1
         19        SEND_VAL                                                 -1
         20        SEND_VAL                                                 'UTF-8'
         21        DO_ICALL                                         $7      
         22        SEND_VAR                                                 $7
         23        DO_ICALL                                         $8      
         24        ASSIGN                                                   !0, $8
   25    25      > FE_RESET_R                                       $10     !0, ->42
         26    > > FE_FETCH_R                                               $10, !1, ->42
   27    27    >   INIT_FCALL                                               'explode'
         28        SEND_VAL                                                 '%7E'
         29        SEND_VAR                                                 !1
         30        DO_ICALL                                         $11     
         31        ASSIGN                                                   !2, $11
   28    32        FETCH_DIM_R                                      ~15     !2, 0
         33        CAST                                          6  ~16     ~15
         34        INIT_ARRAY                                       ~17     ~16, 'Subject'
         35        FETCH_DIM_R                                      ~18     !2, 1
         36        CAST                                          4  ~19     ~18
         37        ADD_ARRAY_ELEMENT                                ~17     ~19, 'Active'
         38        FETCH_OBJ_W                                      $13     'Requests'
         39        ASSIGN_DIM                                               $13
         40        OP_DATA                                                  ~17
   25    41      > JMP                                                      ->26
         42    >   FE_FREE                                                  $10
   30    43      > RETURN                                                   <true>
   32    44    > > RETURN                                                   <false>
   33    45*     > RETURN                                                   null

End of function setrequests

Function getrequests:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0Zc3c
function name:  GetRequests
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     0  E >   FETCH_OBJ_R                                      ~0      'Requests'
          1      > RETURN                                                   ~0
   37     2*     > RETURN                                                   null

End of function getrequests

Function toarray:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0Zc3c
function name:  ToArray
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   40     0  E >   FETCH_OBJ_R                                      ~0      'Requests'
          1        INIT_ARRAY                                       ~1      ~0, 'Requests'
          2      > RETURN                                                   ~1
   41     3*     > RETURN                                                   null

End of function toarray

End of class T.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.76 ms | 1400 KiB | 21 Q