3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Axel { public $test; public function __construct($url){ $this->test = $url; } public function getTest(){ return $this->test; } } $t = new Axel('www.axelv13.com'); for($i = 0; $i >= 0; $i++){ echo $t->getTest(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
Branch analysis from position: 6
filename:       /in/CW4MK
function name:  (null)
number of ops:  13
compiled vars:  !0 = $t, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $2      'Axel'
          1        SEND_VAL_EX                                              'www.axelv13.com'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   15     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->10
   16     6    >   INIT_METHOD_CALL                                         !0, 'getTest'
          7        DO_FCALL                                      0  $6      
          8        ECHO                                                     $6
   15     9        PRE_INC                                                  !1
         10    >   IS_SMALLER_OR_EQUAL                                      0, !1
         11      > JMPNZ                                                    ~8, ->6
   17    12    > > RETURN                                                   1

Class Axel:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CW4MK
function name:  __construct
number of ops:  4
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ASSIGN_OBJ                                               'test'
          2        OP_DATA                                                  !0
    7     3      > RETURN                                                   null

End of function __construct

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

End of function gettest

End of class Axel.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.27 ms | 1395 KiB | 13 Q