3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = array_fill(0, 1, '..'); $x[] = 'a'; var_dump($x);

Looking for PHP 7.0.6 bugs?

Version 7.0.6 was released twice by the PHP Team. We're using the latest version;
meaning this script no longer shows the bug which the original release had.

The bugs that were fixed in the second release are 72116 and 72119.

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ji79d
function name:  (null)
number of ops:  12
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'array_fill'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 1
          3        SEND_VAL                                                 '..'
          4        DO_ICALL                                         $1      
          5        ASSIGN                                                   !0, $1
    4     6        ASSIGN_DIM                                               !0
          7        OP_DATA                                                  'a'
    5     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.53 ms | 1385 KiB | 17 Q