3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt=" gopu.phaneendra"; echo"hellp"; function add() { $x=20; $y=15; $z=$x+$y; echo $z; $z++; } function sub() { $x=20; $y=14; $z=$x-$y; echo $z; $z--; } function mul() { $x=20; $y=15; $z=20*15; echo $z; } function mod() { $x=200; $y=20; $z=$x%y; echo $x; Echo $y; echo $z; } function div() { $x=20; $y=2; $z=$x/$y; echo $z; } add(); add(); sub(); sub(); mul(); mod(); div();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/erCM3
function name:  (null)
number of ops:  17
compiled vars:  !0 = $txt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '++gopu.phaneendra'
    3     1        ECHO                                                     'hellp'
   43     2        INIT_FCALL                                               'add'
          3        DO_FCALL                                      0          
   44     4        INIT_FCALL                                               'add'
          5        DO_FCALL                                      0          
   45     6        INIT_FCALL                                               'sub'
          7        DO_FCALL                                      0          
   46     8        INIT_FCALL                                               'sub'
          9        DO_FCALL                                      0          
   47    10        INIT_FCALL                                               'mul'
         11        DO_FCALL                                      0          
   48    12        INIT_FCALL                                               'mod'
         13        DO_FCALL                                      0          
   49    14        INIT_FCALL                                               'div'
         15        DO_FCALL                                      0          
         16      > RETURN                                                   1

Function add:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/erCM3
function name:  add
number of ops:  7
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 20
    7     1        ASSIGN                                                   !1, 15
    8     2        ADD                                              ~5      !0, !1
          3        ASSIGN                                                   !2, ~5
    9     4        ECHO                                                     !2
   10     5        PRE_INC                                                  !2
   11     6      > RETURN                                                   null

End of function add

Function sub:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/erCM3
function name:  sub
number of ops:  7
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ASSIGN                                                   !0, 20
   15     1        ASSIGN                                                   !1, 14
   16     2        SUB                                              ~5      !0, !1
          3        ASSIGN                                                   !2, ~5
   17     4        ECHO                                                     !2
   18     5        PRE_DEC                                                  !2
   19     6      > RETURN                                                   null

End of function sub

Function mul:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/erCM3
function name:  mul
number of ops:  5
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   ASSIGN                                                   !0, 20
   23     1        ASSIGN                                                   !1, 15
   24     2        ASSIGN                                                   !2, 300
   25     3        ECHO                                                     !2
   26     4      > RETURN                                                   null

End of function mul

Function mod:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/erCM3
function name:  mod
number of ops:  9
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     0  E >   ASSIGN                                                   !0, 200
   30     1        ASSIGN                                                   !1, 20
   31     2        FETCH_CONSTANT                                   ~5      'y'
          3        MOD                                              ~6      !0, ~5
          4        ASSIGN                                                   !2, ~6
   32     5        ECHO                                                     !0
   33     6        ECHO                                                     !1
   34     7        ECHO                                                     !2
   35     8      > RETURN                                                   null

End of function mod

Function div:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/erCM3
function name:  div
number of ops:  6
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   38     0  E >   ASSIGN                                                   !0, 20
   39     1        ASSIGN                                                   !1, 2
   40     2        DIV                                              ~5      !0, !1
          3        ASSIGN                                                   !2, ~5
   41     4        ECHO                                                     !2
   42     5      > RETURN                                                   null

End of function div

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.61 ms | 1403 KiB | 20 Q