3v4l.org

run code in 300+ PHP versions simultaneously
<?php class App{ protected $controller = 'home'; protected $method = 'index'; protected $params = []; public function __construct(){ // echo 'OK!!!'; $this->parseUrl(); } public function parseUrl(){ if(isset($_GET['url'])){ echo $_GET['url']; } } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BhLPp
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E > > RETURN                                                   1

Class App:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BhLPp
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_METHOD_CALL                                         'parseUrl'
          1        DO_FCALL                                      0          
   10     2      > RETURN                                                   null

End of function __construct

Function parseurl:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/BhLPp
function name:  parseUrl
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   FETCH_IS                                         ~0      '_GET'
          1        ISSET_ISEMPTY_DIM_OBJ                         0          ~0, 'url'
          2      > JMPZ                                                     ~1, ->6
   14     3    >   FETCH_R                      global              ~2      '_GET'
          4        FETCH_DIM_R                                      ~3      ~2, 'url'
          5        ECHO                                                     ~3
   18     6    > > RETURN                                                   null

End of function parseurl

End of class App.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.63 ms | 1394 KiB | 13 Q