3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach(array_map(function($n) { $code = substr(base_convert($n, 10, 3), -1) == '0' ? 'fizz' : ''; $code .= substr(base_convert($n, 10, 5), -1) == '0' ? '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/4C1qb
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 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 35
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 35
Branch analysis from position: 33
Branch analysis from position: 35
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
Branch analysis from position: 29
filename:       /in/4C1qb
function name:  {closure}
number of ops:  39
compiled vars:  !0 = $n, !1 = $code
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'substr'
          2        INIT_FCALL                                               'base_convert'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 10
          5        SEND_VAL                                                 3
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        SEND_VAL                                                 -1
          9        DO_ICALL                                         $3      
         10        IS_EQUAL                                                 $3, '0'
         11      > JMPZ                                                     ~4, ->14
         12    >   QM_ASSIGN                                        ~5      'fizz'
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~5      ''
         15    >   ASSIGN                                                   !1, ~5
    4    16        INIT_FCALL                                               'substr'
         17        INIT_FCALL                                               'base_convert'
         18        SEND_VAR                                                 !0
         19        SEND_VAL                                                 10
         20        SEND_VAL                                                 5
         21        DO_ICALL                                         $7      
         22        SEND_VAR                                                 $7
         23        SEND_VAL                                                 -1
         24        DO_ICALL                                         $8      
         25        IS_EQUAL                                                 $8, '0'
         26      > JMPZ                                                     ~9, ->29
         27    >   QM_ASSIGN                                        ~10     'buzz'
         28      > JMP                                                      ->30
         29    >   QM_ASSIGN                                        ~10     ''
         30    >   ASSIGN_OP                                     8          !1, ~10
    5    31        BOOL_NOT                                         ~12     !1
         32      > JMPZ                                                     ~12, ->35
         33    >   QM_ASSIGN                                        ~13     !0
         34      > JMP                                                      ->36
         35    >   QM_ASSIGN                                        ~13     !1
         36    >   ASSIGN                                           ~14     !1, ~13
         37      > RETURN                                                   ~14
    6    38*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.13 ms | 1008 KiB | 17 Q