3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AnimalSounds { public function DogBark() { $bark = "woof, woof, "; $numberofBarks = 4; while ($numberOfBarks > 0 ) { echo $bark; $numberofBarks--; } } } AnimalSounds::DogBark();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MEulo
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_STATIC_METHOD_CALL                                  'AnimalSounds', 'DogBark'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Class AnimalSounds:
Function dogbark:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 3
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 3
Branch analysis from position: 7
Branch analysis from position: 3
filename:       /in/MEulo
function name:  DogBark
number of ops:  8
compiled vars:  !0 = $bark, !1 = $numberofBarks, !2 = $numberOfBarks
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 'woof%2C+woof%2C+'
    8     1        ASSIGN                                                   !1, 4
   10     2      > JMP                                                      ->5
   12     3    >   ECHO                                                     !0
   13     4        PRE_DEC                                                  !1
   10     5    >   IS_SMALLER                                               0, !2
          6      > JMPNZ                                                    ~6, ->3
   15     7    > > RETURN                                                   null

End of function dogbark

End of class AnimalSounds.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.06 ms | 1394 KiB | 13 Q