3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Controller{ public function pieces(){ $p=explode("/", $_SERVER['REQUEST_URI']);//mag leeg zijn $p=array_filter($p); $p=array_values($p); return $p;} public function prevURL(){ $p="/Home/"; if (isset($_SERVER['HTTP_REFERER'])){ $p=$_SERVER['HTTP_REFERER'];} return $p;}} ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gCMa0
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E > > RETURN                                                   1

Class Controller:
Function pieces:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gCMa0
function name:  pieces
number of ops:  17
compiled vars:  !0 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '%2F'
          2        FETCH_R                      global              ~1      '_SERVER'
          3        FETCH_DIM_R                                      ~2      ~1, 'REQUEST_URI'
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    6     7        INIT_FCALL                                               'array_filter'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !0, $5
    7    11        INIT_FCALL                                               'array_values'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !0, $7
    8    15      > RETURN                                                   !0
         16*     > RETURN                                                   null

End of function pieces

Function prevurl:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/gCMa0
function name:  prevURL
number of ops:  9
compiled vars:  !0 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, '%2FHome%2F'
   12     1        FETCH_IS                                         ~2      '_SERVER'
          2        ISSET_ISEMPTY_DIM_OBJ                         0          ~2, 'HTTP_REFERER'
          3      > JMPZ                                                     ~3, ->7
   13     4    >   FETCH_R                      global              ~4      '_SERVER'
          5        FETCH_DIM_R                                      ~5      ~4, 'HTTP_REFERER'
          6        ASSIGN                                                   !0, ~5
   14     7    > > RETURN                                                   !0
          8*     > RETURN                                                   null

End of function prevurl

End of class Controller.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.48 ms | 1396 KiB | 19 Q