3v4l.org

run code in 300+ PHP versions simultaneously
<?php function zamiana($liczba1, $liczba2) { $tymczasowa = $liczba1; $liczba1 = $liczba2; $liczba2 = $tymczasowa; } if($liczba1>$liczba2) { zamiana($liczba1, $liczba2); } for($i=$liczba1; $i<=$liczba2; $i++) { echo $i." "; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 6
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 8
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 8
Branch analysis from position: 13
Branch analysis from position: 8
Branch analysis from position: 6
filename:       /in/8B8sr
function name:  (null)
number of ops:  14
compiled vars:  !0 = $liczba1, !1 = $liczba2, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   IS_SMALLER                                               !1, !0
          1      > JMPZ                                                     ~3, ->6
   12     2    >   INIT_FCALL                                               'zamiana'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_FCALL                                      0          
   14     6    >   ASSIGN                                                   !2, !0
          7      > JMP                                                      ->11
   16     8    >   CONCAT                                           ~6      !2, '+'
          9        ECHO                                                     ~6
   14    10        PRE_INC                                                  !2
         11    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         12      > JMPNZ                                                    ~8, ->8
   19    13    > > RETURN                                                   1

Function zamiana:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8B8sr
function name:  zamiana
number of ops:  6
compiled vars:  !0 = $liczba1, !1 = $liczba2, !2 = $tymczasowa
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        ASSIGN                                                   !2, !0
    6     3        ASSIGN                                                   !0, !1
    7     4        ASSIGN                                                   !1, !2
    8     5      > RETURN                                                   null

End of function zamiana

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.82 ms | 1398 KiB | 14 Q