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; echo " "; } function sub() { $x=20; $y=14; $z=$x-$y; echo $z; $z--; echo " "; } function mul() { $x=20; $y=15; $z=20*15; echo $z; echo " "; } function mod() { $x=200; $y=20; $z=$x%$y; echo $x; echo $z; echo " "; } function div() { $x=20; $y=2; $z=$x/$y; echo $z; echo " "; } add(); add(); sub(); sub(); mul(); mod(); div(); function stop() { $txt="cheating"; $x=100; $find="strength"; } stop(); echo $txt; echo $x; echo $find;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9ocXr
function name:  (null)
number of ops:  22
compiled vars:  !0 = $txt, !1 = $x, !2 = $find
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '++gopu.phaneendra'
    3     1        ECHO                                                     'hellp'
   47     2        INIT_FCALL                                               'add'
          3        DO_FCALL                                      0          
   49     4        INIT_FCALL                                               'add'
          5        DO_FCALL                                      0          
   50     6        INIT_FCALL                                               'sub'
          7        DO_FCALL                                      0          
   51     8        INIT_FCALL                                               'sub'
          9        DO_FCALL                                      0          
   52    10        INIT_FCALL                                               'mul'
         11        DO_FCALL                                      0          
   53    12        INIT_FCALL                                               'mod'
         13        DO_FCALL                                      0          
   54    14        INIT_FCALL                                               'div'
         15        DO_FCALL                                      0          
   61    16        INIT_FCALL                                               'stop'
         17        DO_FCALL                                      0          
   62    18        ECHO                                                     !0
   63    19        ECHO                                                     !1
   64    20        ECHO                                                     !2
         21      > RETURN                                                   1

Function add:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9ocXr
function name:  add
number of ops:  8
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        ECHO                                                     '+++'
   12     7      > 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/9ocXr
function name:  sub
number of ops:  8
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ASSIGN                                                   !0, 20
   16     1        ASSIGN                                                   !1, 14
   17     2        SUB                                              ~5      !0, !1
          3        ASSIGN                                                   !2, ~5
   18     4        ECHO                                                     !2
   19     5        PRE_DEC                                                  !2
   20     6        ECHO                                                     '+++'
   21     7      > 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/9ocXr
function name:  mul
number of ops:  6
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   ASSIGN                                                   !0, 20
   25     1        ASSIGN                                                   !1, 15
   26     2        ASSIGN                                                   !2, 300
   27     3        ECHO                                                     !2
   28     4        ECHO                                                     '+++'
   29     5      > 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/9ocXr
function name:  mod
number of ops:  8
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   32     0  E >   ASSIGN                                                   !0, 200
   33     1        ASSIGN                                                   !1, 20
   34     2        MOD                                              ~5      !0, !1
          3        ASSIGN                                                   !2, ~5
   35     4        ECHO                                                     !0
   36     5        ECHO                                                     !2
   37     6        ECHO                                                     '+++'
   38     7      > 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/9ocXr
function name:  div
number of ops:  7
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   41     0  E >   ASSIGN                                                   !0, 20
   42     1        ASSIGN                                                   !1, 2
   43     2        DIV                                              ~5      !0, !1
          3        ASSIGN                                                   !2, ~5
   44     4        ECHO                                                     !2
   45     5        ECHO                                                     '+++'
   46     6      > RETURN                                                   null

End of function div

Function stop:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9ocXr
function name:  stop
number of ops:  4
compiled vars:  !0 = $txt, !1 = $x, !2 = $find
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   57     0  E >   ASSIGN                                                   !0, 'cheating'
   58     1        ASSIGN                                                   !1, 100
   59     2        ASSIGN                                                   !2, 'strength'
   60     3      > RETURN                                                   null

End of function stop

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.85 ms | 1394 KiB | 21 Q