3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dog { public $dog; public function __construct() { for ($i = 0; $i <= 6000; $i++) { if ($i === 6000) { $this->dog = $i; } } } } $dog = new Dog(); var_dump($dog->dog);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pLa4J
function name:  (null)
number of ops:  8
compiled vars:  !0 = $dog
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'Dog'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        INIT_FCALL                                               'var_dump'
          4        FETCH_OBJ_R                                      ~4      !0, 'dog'
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Class Dog:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 2
Branch analysis from position: 9
Branch analysis from position: 2
Branch analysis from position: 6
filename:       /in/pLa4J
function name:  __construct
number of ops:  10
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->7
    7     2    >   IS_IDENTICAL                                             !0, 6000
          3      > JMPZ                                                     ~2, ->6
    8     4    >   ASSIGN_OBJ                                               'dog'
          5        OP_DATA                                                  !0
    6     6    >   PRE_INC                                                  !0
          7    >   IS_SMALLER_OR_EQUAL                                      !0, 6000
          8      > JMPNZ                                                    ~5, ->2
   11     9    > > RETURN                                                   null

End of function __construct

End of class Dog.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.77 ms | 1395 KiB | 15 Q