3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keys = array( 'staff_first_name' => NULL, 'staff_last_name' => NULL, 'staff_years' => NULL ); $values = array( 'years' => 5, 'first_name' => 'jon', 'last_name' => 'doe', ); ksort($values); ksort($keys); Var_dump(array_combine(array_keys($keys), $values));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cBNhk
function name:  (null)
number of ops:  19
compiled vars:  !0 = $keys, !1 = $values
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        ASSIGN                                                   !1, <array>
   16     2        INIT_FCALL                                               'ksort'
          3        SEND_REF                                                 !1
          4        DO_ICALL                                                 
   17     5        INIT_FCALL                                               'ksort'
          6        SEND_REF                                                 !0
          7        DO_ICALL                                                 
   18     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'array_combine'
         10        INIT_FCALL                                               'array_keys'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $6      
         13        SEND_VAR                                                 $6
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $7      
         16        SEND_VAR                                                 $7
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.53 ms | 1406 KiB | 21 Q