3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function takesStrings(string $key, string $value): void { foreach ([$key => $value] as $new_key => $new_value) { echo strlen($new_key) + strlen($new_value); } } takesStrings("1", "a");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XQTWc
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'takesstrings'
          1        SEND_VAL                                                 '1'
          2        SEND_VAL                                                 'a'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function takesstrings:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 11
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/XQTWc
function name:  takesStrings
number of ops:  13
compiled vars:  !0 = $key, !1 = $value, !2 = $new_value, !3 = $new_key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        INIT_ARRAY                                       ~4      !1, !0
          3      > FE_RESET_R                                       $5      ~4, ->11
          4    > > FE_FETCH_R                                       ~6      $5, !2, ->11
          5    >   ASSIGN                                                   !3, ~6
    5     6        STRLEN                                           ~8      !3
          7        STRLEN                                           ~9      !2
          8        ADD                                              ~10     ~8, ~9
          9        ECHO                                                     ~10
    4    10      > JMP                                                      ->4
         11    >   FE_FREE                                                  $5
    7    12      > RETURN                                                   null

End of function takesstrings

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.63 ms | 1398 KiB | 14 Q