3v4l.org

run code in 300+ PHP versions simultaneously
<?php function countFromAndTo($from, $to) { for ($counter = $from; $counter <= $to; $counter = $counter +1) { print $counter . ', '; } } print "Josh: ".PHP_EOL; countFromAndTo(5, 26); print "Armando: ".PHP_EOL; countFromAndTo(27, 38); print "Juan: ".PHP_EOL; countFromAndTo(-15,3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LiHM9
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ECHO                                                     'Josh%3A+%0A'
   11     1        INIT_FCALL                                               'countfromandto'
          2        SEND_VAL                                                 5
          3        SEND_VAL                                                 26
          4        DO_FCALL                                      0          
   12     5        ECHO                                                     'Armando%3A+%0A'
   13     6        INIT_FCALL                                               'countfromandto'
          7        SEND_VAL                                                 27
          8        SEND_VAL                                                 38
          9        DO_FCALL                                      0          
   14    10        ECHO                                                     'Juan%3A+%0A'
   15    11        INIT_FCALL                                               'countfromandto'
         12        SEND_VAL                                                 -15
         13        SEND_VAL                                                 3
         14        DO_FCALL                                      0          
         15      > 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/LiHM9
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, '%2C+'
          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:
163.71 ms | 1399 KiB | 16 Q