3v4l.org

run code in 300+ PHP versions simultaneously
<?php function countFromAndTo($from, $to) { for ($counter = $from; $counter <= $to; $counter = $counter +1) { print $counter . PHP_EOL; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qDZ9T
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E > > RETURN                                                   1

Function countfromandto:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 4
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 4
Branch analysis from position: 10
Branch analysis from position: 4
filename:       /in/qDZ9T
function name:  countFromAndTo
number of ops:  11
compiled vars:  !0 = $from, !1 = $to, !2 = $counter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        ASSIGN                                                   !2, !0
          3      > JMP                                                      ->8
    6     4    >   CONCAT                                           ~4      !2, '%0A'
          5        ECHO                                                     ~4
    5     6        ADD                                              ~5      !2, 1
          7        ASSIGN                                                   !2, ~5
          8    >   IS_SMALLER_OR_EQUAL                                      !2, !1
          9      > JMPNZ                                                    ~7, ->4
    8    10    > > RETURN                                                   null

End of function countfromandto

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.46 ms | 1393 KiB | 13 Q