3v4l.org

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

Function ack:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LToWG
function name:  ack
number of ops:  7
compiled vars:  !0 = $m, !1 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    3     2        BOOL_NOT                                         ~2      !0
          3      > JMPZ                                                     ~2, ->6
          4    >   PRE_INC                                          ~3      !1
          5      > RETURN                                                   ~3
    5     6    > > RETURN                                                   null

End of function ack

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.96 ms | 1401 KiB | 14 Q