3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testing { public function test ($count, &$array = array()){ if ($count > 20) return 1; $array[] = $this->test($count+1, $array); var_dump($array); return 10000; } } $testme = new testing(); //var_dump($testme->test()); var_dump($testme->test(0));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/luvgk
function name:  (null)
number of ops:  10
compiled vars:  !0 = $testme
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'testing'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   16     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !0, 'test'
          5        SEND_VAL_EX                                              0
          6        DO_FCALL                                      0  $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Class testing:
Function test:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/luvgk
function name:  test
number of ops:  17
compiled vars:  !0 = $count, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <array>
    4     2        IS_SMALLER                                               20, !0
          3      > JMPZ                                                     ~2, ->5
    5     4    > > RETURN                                                   1
    7     5    >   INIT_METHOD_CALL                                         'test'
          6        ADD                                              ~4      !0, 1
          7        SEND_VAL_EX                                              ~4
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0  $5      
         10        ASSIGN_DIM                                               !1
         11        OP_DATA                                                  $5
    8    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
    9    15      > RETURN                                                   10000
   10    16*     > RETURN                                                   null

End of function test

End of class testing.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.07 ms | 1396 KiB | 15 Q