3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [20,22,29,40,67,35,98,200,205,220]; subTractReccursive($a); function subTractReccursive($a){ for($i=0;$i<count($a)-1;$i++){ $c[] = $a[$i+1]-$a[$i]; } echo implode (' ',$c)."\n"; if(count($c) > 1){ subTractReccursive($c); } return; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ehD26
function name:  (null)
number of ops:  5
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL_BY_NAME                                       'subTractReccursive'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
   13     4      > RETURN                                                   1

Function subtractreccursive:
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 = 14, Position 2 = 3
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 26
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
Branch analysis from position: 3
filename:       /in/ehD26
function name:  subTractReccursive
number of ops:  28
compiled vars:  !0 = $a, !1 = $i, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->10
    6     3    >   ADD                                              ~5      !1, 1
          4        FETCH_DIM_R                                      ~6      !0, ~5
          5        FETCH_DIM_R                                      ~7      !0, !1
          6        SUB                                              ~8      ~6, ~7
          7        ASSIGN_DIM                                               !2
          8        OP_DATA                                                  ~8
    5     9        PRE_INC                                                  !1
         10    >   COUNT                                            ~10     !0
         11        SUB                                              ~11     ~10, 1
         12        IS_SMALLER                                               !1, ~11
         13      > JMPNZ                                                    ~12, ->3
    8    14    >   INIT_FCALL                                               'implode'
         15        SEND_VAL                                                 '++'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $13     
         18        CONCAT                                           ~14     $13, '%0A'
         19        ECHO                                                     ~14
    9    20        COUNT                                            ~15     !2
         21        IS_SMALLER                                               1, ~15
         22      > JMPZ                                                     ~16, ->26
   10    23    >   INIT_FCALL_BY_NAME                                       'subTractReccursive'
         24        SEND_VAR_EX                                              !2
         25        DO_FCALL                                      0          
   12    26    > > RETURN                                                   null
   13    27*     > RETURN                                                   null

End of function subtractreccursive

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.61 ms | 1001 KiB | 14 Q