3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fe($arg1, ...$args) { $count = strlen ($arg1); foreach ($args as $arg) { $count += strlen($arg); } return $count; } fd("aaa", "aaa", "aaa", "aaa", "aaa");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bsNd0
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL_BY_NAME                                       'fd'
          1        SEND_VAL_EX                                              'aaa'
          2        SEND_VAL_EX                                              'aaa'
          3        SEND_VAL_EX                                              'aaa'
          4        SEND_VAL_EX                                              'aaa'
          5        SEND_VAL_EX                                              'aaa'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Function fe:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/bsNd0
function name:  fe
number of ops:  12
compiled vars:  !0 = $arg1, !1 = $args, !2 = $count, !3 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV_VARIADIC                                    !1      
    4     2        STRLEN                                           ~4      !0
          3        ASSIGN                                                   !2, ~4
    6     4      > FE_RESET_R                                       $6      !1, ->9
          5    > > FE_FETCH_R                                               $6, !3, ->9
    7     6    >   STRLEN                                           ~7      !3
          7        ASSIGN_OP                                     1          !2, ~7
    6     8      > JMP                                                      ->5
          9    >   FE_FREE                                                  $6
   10    10      > RETURN                                                   !2
   11    11*     > RETURN                                                   null

End of function fe

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.64 ms | 1394 KiB | 13 Q