3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo{ private $var; public function __construct($value) { $this->var = $value; } } for($i=0;$i<100000;++$i) { $value = (string)$i; $obj = new Foo($value); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 2
Branch analysis from position: 11
Branch analysis from position: 2
filename:       /in/7EkIA
function name:  (null)
number of ops:  12
compiled vars:  !0 = $i, !1 = $value, !2 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->9
   14     2    >   CAST                                          6  ~4      !0
          3        ASSIGN                                                   !1, ~4
   15     4        NEW                                              $6      'Foo'
          5        SEND_VAR_EX                                              !1
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !2, $6
   12     8        PRE_INC                                                  !0
          9    >   IS_SMALLER                                               !0, 100000
         10      > JMPNZ                                                    ~10, ->2
   16    11    > > RETURN                                                   1

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

End of function __construct

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.23 ms | 1394 KiB | 13 Q