3v4l.org

run code in 300+ PHP versions simultaneously
<?php $some_array = array (0 => 1, ’x’ => 1, 2 => 1, ’a’ => 1, 1 => 1, ’z’ => 1); ksort($some_array); echo(join("", array_keys($some_array)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dBtmc
function name:  (null)
number of ops:  22
compiled vars:  !0 = $some_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_ARRAY                                       ~1      1, 0
          1        FETCH_CONSTANT                                   ~2      '%E2%80%99x%E2%80%99'
          2        ADD_ARRAY_ELEMENT                                ~1      1, ~2
          3        ADD_ARRAY_ELEMENT                                ~1      1, 2
          4        FETCH_CONSTANT                                   ~3      '%E2%80%99a%E2%80%99'
          5        ADD_ARRAY_ELEMENT                                ~1      1, ~3
          6        ADD_ARRAY_ELEMENT                                ~1      1, 1
          7        FETCH_CONSTANT                                   ~4      '%E2%80%99z%E2%80%99'
          8        ADD_ARRAY_ELEMENT                                ~1      1, ~4
          9        ASSIGN                                                   !0, ~1
    3    10        INIT_FCALL                                               'ksort'
         11        SEND_REF                                                 !0
         12        DO_ICALL                                                 
    4    13        INIT_FCALL                                               'join'
         14        SEND_VAL                                                 ''
         15        INIT_FCALL                                               'array_keys'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $7      
         18        SEND_VAR                                                 $7
         19        DO_ICALL                                         $8      
         20        ECHO                                                     $8
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.32 ms | 1395 KiB | 19 Q