3v4l.org

run code in 500+ 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:  19
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_ARRAY                                           ~1      4, 2
          1        ADD_ARRAY_ELEMENT                                    ~1      3, 5
          2        ADD_ARRAY_ELEMENT                                    ~1      null, 3
          3        ADD_ARRAY_ELEMENT                                    ~1      'foo', -10.9
          4        ASSIGN                                                       !0, ~1
    4     5        ECHO                                                         'array_values%28%29%3A+'
          6        INIT_FCALL                                                   'var_export'
          7        INIT_FCALL                                                   'array_values'
          8        SEND_VAR                                                     !0
          9        DO_ICALL                                             $3      
         10        SEND_VAR                                                     $3
         11        DO_ICALL                                                     
    5    12        ECHO                                                         '%0Asplatpack%3A+'
         13        INIT_FCALL                                                   'var_export'
         14        INIT_ARRAY                                           ~5      
         15        ADD_ARRAY_UNPACK                                     ~5      !0
         16        SEND_VAL                                                     ~5
         17        DO_ICALL                                                     
         18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.62 ms | 2103 KiB | 15 Q