3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(0 => 'a', 'str' => 'b'); $b = array('str' => 'b', 0 => 'a'); ksort($a); ksort($b); $c = array(0, 'str'); $d = array('str', 0); sort($c); sort($d); var_export($a); echo "\n"; var_export($b); echo "\n"; var_export($c); echo "\n"; var_export($d);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WZdMB
function name:  (null)
number of ops:  32
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        INIT_FCALL                                               'ksort'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    5     5        INIT_FCALL                                               'ksort'
          6        SEND_REF                                                 !1
          7        DO_ICALL                                                 
    7     8        ASSIGN                                                   !2, <array>
    8     9        ASSIGN                                                   !3, <array>
    9    10        INIT_FCALL                                               'sort'
         11        SEND_REF                                                 !2
         12        DO_ICALL                                                 
   10    13        INIT_FCALL                                               'sort'
         14        SEND_REF                                                 !3
         15        DO_ICALL                                                 
   12    16        INIT_FCALL                                               'var_export'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
   13    19        ECHO                                                     '%0A'
   14    20        INIT_FCALL                                               'var_export'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
   15    23        ECHO                                                     '%0A'
   16    24        INIT_FCALL                                               'var_export'
         25        SEND_VAR                                                 !2
         26        DO_ICALL                                                 
   17    27        ECHO                                                     '%0A'
   18    28        INIT_FCALL                                               'var_export'
         29        SEND_VAR                                                 !3
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.74 ms | 1395 KiB | 19 Q