3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = Array ( 'abc' => Array ( 2 => 2, 3 => 3, 5 => 5, 1 => 1 ) ); $b = array_values($a['abc']); sort($b); print_r($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O8Dmf
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   13     1        INIT_FCALL                                               'array_values'
          2        FETCH_DIM_R                                      ~3      !0, 'abc'
          3        SEND_VAL                                                 ~3
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   14     6        INIT_FCALL                                               'sort'
          7        SEND_REF                                                 !1
          8        DO_ICALL                                                 
   15     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.23 ms | 1385 KiB | 19 Q