3v4l.org

run code in 500+ PHP versions simultaneously
<?php // const: 定数キーワード。不変の値は $ なしでも格納できます const START = 1; const END = 100; // implode: 配列要素を文字列により連結する // @see https://www.php.net/manual/ja/function.implode.php echo implode("\n", // array_slice: 配列を任意の範囲で切り取る // @see https://www.php.net/manual/ja/function.array-slice.php array_slice( // array_replace: 配列の中身を置き換える // @see https://www.php.net/manual/ja/function.array-replace.php array_replace(range(0, END), // array_fill_keys: 第二引数の値で埋まった第一引数のキーらを持つ配列を得る // @see https://www.php.net/manual/ja/function.array-fill-keys.php array_fill_keys(range(0, END, 3), 'Fizz'), array_fill_keys(range(0, END, 5), 'Buzz'), array_fill_keys(range(0, END, 15), 'FizzBuzz') ), START, END ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nXRa7
function name:  (null)
number of ops:  53
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                                'START', 1
    4     1        DECLARE_CONST                                                'END', 100
   10     2        INIT_FCALL                                                   'array_slice'
   13     3        INIT_FCALL                                                   'array_replace'
          4        INIT_FCALL                                                   'range'
          5        SEND_VAL                                                     0
          6        FETCH_CONSTANT                                       ~0      'END'
          7        SEND_VAL                                                     ~0
          8        DO_ICALL                                             $1      
          9        SEND_VAR                                                     $1
   16    10        INIT_FCALL                                                   'array_fill_keys'
         11        INIT_FCALL                                                   'range'
         12        SEND_VAL                                                     0
         13        FETCH_CONSTANT                                       ~2      'END'
         14        SEND_VAL                                                     ~2
         15        SEND_VAL                                                     3
         16        DO_ICALL                                             $3      
         17        SEND_VAR                                                     $3
         18        SEND_VAL                                                     'Fizz'
         19        DO_ICALL                                             $4      
         20        SEND_VAR                                                     $4
   17    21        INIT_FCALL                                                   'array_fill_keys'
         22        INIT_FCALL                                                   'range'
         23        SEND_VAL                                                     0
         24        FETCH_CONSTANT                                       ~5      'END'
         25        SEND_VAL                                                     ~5
         26        SEND_VAL                                                     5
         27        DO_ICALL                                             $6      
         28        SEND_VAR                                                     $6
         29        SEND_VAL                                                     'Buzz'
         30        DO_ICALL                                             $7      
         31        SEND_VAR                                                     $7
   18    32        INIT_FCALL                                                   'array_fill_keys'
         33        INIT_FCALL                                                   'range'
         34        SEND_VAL                                                     0
         35        FETCH_CONSTANT                                       ~8      'END'
         36        SEND_VAL                                                     ~8
         37        SEND_VAL                                                     15
         38        DO_ICALL                                             $9      
         39        SEND_VAR                                                     $9
         40        SEND_VAL                                                     'FizzBuzz'
         41        DO_ICALL                                             $10     
         42        SEND_VAR                                                     $10
   13    43        DO_ICALL                                             $11     
   18    44        SEND_VAR                                                     $11
   20    45        FETCH_CONSTANT                                       ~12     'START'
         46        SEND_VAL                                                     ~12
         47        FETCH_CONSTANT                                       ~13     'END'
         48        SEND_VAL                                                     ~13
   10    49        DO_ICALL                                             $14     
    7    50        FRAMELESS_ICALL_2                implode             ~15     '%0A', $14
   20    51        ECHO                                                         ~15
   22    52      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.21 ms | 2058 KiB | 19 Q