3v4l.org

run code in 300+ PHP versions simultaneously
<?php class booHoo{ public function __construct($stupidNumber, $anotherStupidNumber) { $this->stupidNumber = $stupidNumber; $this->anotherStupidNumber = $anotherStupidNumber; } public function magic() { $suchFraction = fmod($this->stupidNumber, $this->anotherStupidNumber); if($suchFraction > 0) { echo 'such Float, much fraction. Wow'; } else { echo 'such Integer, much clean. Wow'; } } } $greeter = new booHoo($count, $multiple); $greeter->magic();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6Atr5
function name:  (null)
number of ops:  8
compiled vars:  !0 = $greeter, !1 = $count, !2 = $multiple
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   NEW                                              $3      'booHoo'
          1        SEND_VAR_EX                                              !1
          2        SEND_VAR_EX                                              !2
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $3
   22     5        INIT_METHOD_CALL                                         !0, 'magic'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

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

End of function __construct

Function magic:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6Atr5
function name:  magic
number of ops:  13
compiled vars:  !0 = $suchFraction
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'fmod'
          1        FETCH_OBJ_R                                      ~1      'stupidNumber'
          2        SEND_VAL                                                 ~1
          3        FETCH_OBJ_R                                      ~2      'anotherStupidNumber'
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
   11     7        IS_SMALLER                                               0, !0
          8      > JMPZ                                                     ~5, ->11
   12     9    >   ECHO                                                     'such+Float%2C+much+fraction.+Wow'
         10      > JMP                                                      ->12
   14    11    >   ECHO                                                     'such+Integer%2C+much+clean.+Wow'
   16    12    > > RETURN                                                   null

End of function magic

End of class booHoo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.94 ms | 1396 KiB | 15 Q