3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(array_fill(10, 3, 'hi')); var_dump(array_fill(0, 3, 'hi')); echo '<wtf>'."\n"; var_dump(array_fill(-10, 3, 'hi')); echo '</wtf>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PrDUt
function name:  (null)
number of ops:  27
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'array_fill'
          2        SEND_VAL                                                 10
          3        SEND_VAL                                                 3
          4        SEND_VAL                                                 'hi'
          5        DO_ICALL                                         $0      
          6        SEND_VAR                                                 $0
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'array_fill'
         10        SEND_VAL                                                 0
         11        SEND_VAL                                                 3
         12        SEND_VAL                                                 'hi'
         13        DO_ICALL                                         $2      
         14        SEND_VAR                                                 $2
         15        DO_ICALL                                                 
    5    16        ECHO                                                     '%3Cwtf%3E%0A'
    6    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'array_fill'
         19        SEND_VAL                                                 -10
         20        SEND_VAL                                                 3
         21        SEND_VAL                                                 'hi'
         22        DO_ICALL                                         $4      
         23        SEND_VAR                                                 $4
         24        DO_ICALL                                                 
    7    25        ECHO                                                     '%3C%2Fwtf%3E'
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.58 ms | 1387 KiB | 17 Q