3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sequence($n){ for($i = 1; $i < $n; $i ++) { print("(".$i.",".($n-$i).")"); // sequence($i); } } sequence(4);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uDR8t
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'sequence'
          1        SEND_VAL                                                 4
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function sequence:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
Branch analysis from position: 3
filename:       /in/uDR8t
function name:  sequence
number of ops:  13
compiled vars:  !0 = $n, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->10
    4     3    >   CONCAT                                           ~3      '%28', !1
          4        CONCAT                                           ~4      ~3, '%2C'
          5        SUB                                              ~5      !0, !1
          6        CONCAT                                           ~6      ~4, ~5
          7        CONCAT                                           ~7      ~6, '%29'
          8        ECHO                                                     ~7
    3     9        PRE_INC                                                  !1
         10    >   IS_SMALLER                                               !1, !0
         11      > JMPNZ                                                    ~9, ->3
    8    12    > > RETURN                                                   null

End of function sequence

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.75 ms | 1397 KiB | 14 Q