3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach(array_map(function($n) { $code = 0 === $n % 3 ? 'fizz' : ''; $code .= 0 === $n % 5 ? 'buzz' : ''; return $code = (!$code) ? $n : $code; }, range(1, 100)) as $value) echo $value . PHP_EOL;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/sfH03
function name:  (null)
number of ops:  16
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'array_map'
          1        DECLARE_LAMBDA_FUNCTION                          ~1      [0]
    6     2        SEND_VAL                                                 ~1
          3        INIT_FCALL                                               'range'
          4        SEND_VAL                                                 1
          5        SEND_VAL                                                 100
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
    2     8        DO_ICALL                                         $3      
    6     9      > FE_RESET_R                                       $4      $3, ->14
         10    > > FE_FETCH_R                                               $4, !0, ->14
    8    11    >   CONCAT                                           ~5      !0, '%0A'
         12        ECHO                                                     ~5
    2    13      > JMP                                                      ->10
         14    >   FE_FREE                                                  $4
    8    15      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
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 = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
Branch analysis from position: 19
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
Branch analysis from position: 13
filename:       /in/sfH03
function name:  {closure}
number of ops:  23
compiled vars:  !0 = $n, !1 = $code
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        MOD                                              ~2      !0, 3
          2        IS_IDENTICAL                                             ~2, 0
          3      > JMPZ                                                     ~3, ->6
          4    >   QM_ASSIGN                                        ~4      'fizz'
          5      > JMP                                                      ->7
          6    >   QM_ASSIGN                                        ~4      ''
          7    >   ASSIGN                                                   !1, ~4
    4     8        MOD                                              ~6      !0, 5
          9        IS_IDENTICAL                                             ~6, 0
         10      > JMPZ                                                     ~7, ->13
         11    >   QM_ASSIGN                                        ~8      'buzz'
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~8      ''
         14    >   ASSIGN_OP                                     8          !1, ~8
    5    15        BOOL_NOT                                         ~10     !1
         16      > JMPZ                                                     ~10, ->19
         17    >   QM_ASSIGN                                        ~11     !0
         18      > JMP                                                      ->20
         19    >   QM_ASSIGN                                        ~11     !1
         20    >   ASSIGN                                           ~12     !1, ~11
         21      > RETURN                                                   ~12
    6    22*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
229.86 ms | 1004 KiB | 15 Q