3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{ public $name; public function __construct($name){ $this->name = $name; } public function getName(){ return $this->name; } } for($i=0;$i<1000;$i++){ $s = new Test($i); echo $s->getName().'<br />'; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 2
Branch analysis from position: 13
Branch analysis from position: 2
filename:       /in/3jvuV
function name:  (null)
number of ops:  14
compiled vars:  !0 = $i, !1 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->11
   15     2    >   NEW                                              $3      'Test'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $3
   16     6        INIT_METHOD_CALL                                         !1, 'getName'
          7        DO_FCALL                                      0  $6      
          8        CONCAT                                           ~7      $6, '%3Cbr+%2F%3E'
          9        ECHO                                                     ~7
   14    10        PRE_INC                                                  !0
         11    >   IS_SMALLER                                               !0, 1000
         12      > JMPNZ                                                    ~9, ->2
   19    13    > > RETURN                                                   1

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

End of function __construct

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

End of function getname

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.11 ms | 1395 KiB | 13 Q