3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [2 => 4, 5 => 3, "3" => null, -10.9 => 'foo']; echo 'array_values(): '; var_export(array_values($array)); echo "\nsplatpack: "; var_export([...$array]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7apMc
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ECHO                                                     'array_values%28%29%3A+'
          2        INIT_FCALL                                               'var_export'
          3        INIT_FCALL                                               'array_values'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
    5     8        ECHO                                                     '%0Asplatpack%3A+'
          9        INIT_FCALL                                               'var_export'
         10        INIT_ARRAY                                       ~4      
         11        ADD_ARRAY_UNPACK                                 ~4      !0
         12        SEND_VAL                                                 ~4
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
193.17 ms | 1394 KiB | 17 Q