3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $hola; public function setHola($name) { $this->hola = $name; } } $a = new A; for($i=0; $i < 100000; $i++) { $a->setHola('test'); }
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 = 5
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 5
Branch analysis from position: 11
Branch analysis from position: 5
filename:       /in/BXh2G
function name:  (null)
number of ops:  12
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                                                      ->9
   14     5    >   INIT_METHOD_CALL                                         !0, 'setHola'
          6        SEND_VAL_EX                                              'test'
          7        DO_FCALL                                      0          
   13     8        PRE_INC                                                  !1
          9    >   IS_SMALLER                                               !1, 100000
         10      > JMPNZ                                                    ~8, ->5
   15    11    > > RETURN                                                   1

Class A:
Function sethola:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BXh2G
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:
171.69 ms | 934 KiB | 14 Q