3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class PaypalRepository { /** * @var string */ private $apiUrl; public function __construct() { if (rand(0,1)) { $this->apiUrl = 'https://example.com/'; } else { $this->apiUrl = 'https://another.example.com/'; } unset($this->apiUrl); } } new PaypalRepository();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LisKe
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   NEW                                              $0      'PaypalRepository'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
          3      > RETURN                                                   1

Class PaypalRepository:
Function __construct:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LisKe
function name:  __construct
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'rand'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 1
          3        DO_ICALL                                         $0      
          4      > JMPZ                                                     $0, ->8
   13     5    >   ASSIGN_OBJ                                               'apiUrl'
          6        OP_DATA                                                  'https%3A%2F%2Fexample.com%2F'
   12     7      > JMP                                                      ->10
   15     8    >   ASSIGN_OBJ                                               'apiUrl'
          9        OP_DATA                                                  'https%3A%2F%2Fanother.example.com%2F'
   18    10    >   UNSET_OBJ                                                'apiUrl'
   19    11      > RETURN                                                   null

End of function __construct

End of class PaypalRepository.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.47 ms | 1425 KiB | 14 Q