3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test ($x, $y) { if ($x % $y) { test($x, $y - 1); } } test(111, 110);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VoN4Q
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'test'
          1        SEND_VAL                                                 111
          2        SEND_VAL                                                 110
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/VoN4Q
function name:  test
number of ops:  10
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        MOD                                              ~2      !0, !1
          3      > JMPZ                                                     ~2, ->9
    5     4    >   INIT_FCALL_BY_NAME                                       'test'
          5        SEND_VAR_EX                                              !0
          6        SUB                                              ~3      !1, 1
          7        SEND_VAL_EX                                              ~3
          8        DO_FCALL                                      0          
    7     9    > > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.63 ms | 1397 KiB | 14 Q