3v4l.org

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

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

End of function sethola

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.82 ms | 1393 KiB | 13 Q