3v4l.org

run code in 500+ PHP versions simultaneously
<?php class X { /** * @param int $nbToken * * @pslam-param int<1, max> $nbToken */ public function mark(string $place, /*, int, $nbToken = 1 */): void { $nbToken = 1 < \func_num_args() ? func_get_arg(1) : 1; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/g3htG
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   15     0  E > > RETURN                                                       1

Class X:
Function mark:
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 = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/g3htG
function name:  mark
number of ops:  12
compiled vars:  !0 = $place, !1 = $nbToken
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   RECV                                                 !0      
   12     1        FUNC_NUM_ARGS                                        ~2      
          2        IS_SMALLER                                                   1, ~2
          3      > JMPZ                                                         ~3, ->9
          4    >   INIT_FCALL                                                   'func_get_arg'
          5        SEND_VAL                                                     1
          6        DO_ICALL                                             $4      
          7        QM_ASSIGN                                            ~5      $4
          8      > JMP                                                          ->10
          9    >   QM_ASSIGN                                            ~5      1
         10    >   ASSIGN                                                       !1, ~5
   13    11      > RETURN                                                       null

End of function mark

End of class X.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
138.21 ms | 1461 KiB | 14 Q