3v4l.org

run code in 300+ 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:  56
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
    7     2        INIT_FCALL                                               'implode'
          3        SEND_VAL                                                 '%0A'
   10     4        INIT_FCALL                                               'array_slice'
   13     5        INIT_FCALL                                               'array_replace'
          6        INIT_FCALL                                               'range'
          7        SEND_VAL                                                 0
          8        FETCH_CONSTANT                                   ~0      'END'
          9        SEND_VAL                                                 ~0
         10        DO_ICALL                                         $1      
         11        SEND_VAR                                                 $1
   16    12        INIT_FCALL                                               'array_fill_keys'
         13        INIT_FCALL                                               'range'
         14        SEND_VAL                                                 0
         15        FETCH_CONSTANT                                   ~2      'END'
         16        SEND_VAL                                                 ~2
         17        SEND_VAL                                                 3
         18        DO_ICALL                                         $3      
         19        SEND_VAR                                                 $3
         20        SEND_VAL                                                 'Fizz'
         21        DO_ICALL                                         $4      
         22        SEND_VAR                                                 $4
   17    23        INIT_FCALL                                               'array_fill_keys'
         24        INIT_FCALL                                               'range'
         25        SEND_VAL                                                 0
         26        FETCH_CONSTANT                                   ~5      'END'
         27        SEND_VAL                                                 ~5
         28        SEND_VAL                                                 5
         29        DO_ICALL                                         $6      
         30        SEND_VAR                                                 $6
         31        SEND_VAL                                                 'Buzz'
         32        DO_ICALL                                         $7      
         33        SEND_VAR                                                 $7
   18    34        INIT_FCALL                                               'array_fill_keys'
         35        INIT_FCALL                                               'range'
         36        SEND_VAL                                                 0
         37        FETCH_CONSTANT                                   ~8      'END'
         38        SEND_VAL                                                 ~8
         39        SEND_VAL                                                 15
         40        DO_ICALL                                         $9      
         41        SEND_VAR                                                 $9
         42        SEND_VAL                                                 'FizzBuzz'
         43        DO_ICALL                                         $10     
         44        SEND_VAR                                                 $10
   13    45        DO_ICALL                                         $11     
   18    46        SEND_VAR                                                 $11
   20    47        FETCH_CONSTANT                                   ~12     'START'
         48        SEND_VAL                                                 ~12
         49        FETCH_CONSTANT                                   ~13     'END'
         50        SEND_VAL                                                 ~13
   10    51        DO_ICALL                                         $14     
   20    52        SEND_VAR                                                 $14
    7    53        DO_ICALL                                         $15     
   20    54        ECHO                                                     $15
   22    55      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.87 ms | 1460 KiB | 18 Q