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/fXsnS
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 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
Branch analysis from position: 3
filename:       /in/fXsnS
function name:  sequence
number of ops:  16
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                                                      ->13
    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
    6     9        INIT_FCALL_BY_NAME                                       'sequence'
         10        SEND_VAR_EX                                              !1
         11        DO_FCALL                                      0          
    3    12        PRE_INC                                                  !1
         13    >   IS_SMALLER                                               !1, !0
         14      > JMPNZ                                                    ~10, ->3
    8    15    > > RETURN                                                   null

End of function sequence

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.83 ms | 1397 KiB | 14 Q