3v4l.org

run code in 300+ PHP versions simultaneously
<?php function swap($g, $k) { $temp = $g; $g = $k; $k = $temp; } if($g>$k) swap($g, $k); for($i=$g; $i<=$k; $i++) { echo $i."<br>"; } ?>
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/ZkNIA
function name:  (null)
number of ops:  14
compiled vars:  !0 = $g, !1 = $k, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   IS_SMALLER                                               !1, !0
          1      > JMPZ                                                     ~3, ->6
          2    >   INIT_FCALL                                               'swap'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_FCALL                                      0          
   11     6    >   ASSIGN                                                   !2, !0
          7      > JMP                                                      ->11
   13     8    >   CONCAT                                           ~6      !2, '%3Cbr%3E'
          9        ECHO                                                     ~6
   11    10        PRE_INC                                                  !2
         11    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         12      > JMPNZ                                                    ~8, ->8
   16    13    > > RETURN                                                   1

Function swap:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZkNIA
function name:  swap
number of ops:  6
compiled vars:  !0 = $g, !1 = $k, !2 = $temp
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 swap

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.95 ms | 1398 KiB | 14 Q