3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( 'one' => 1, 'two' => 2, 'three' => 3 ); $a1 = sort($a); var_dump($a); $a2 = ksort($a); var_dump($a2); $a3 = asort($a); var_dump($a3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mkCdo
function name:  (null)
number of ops:  23
compiled vars:  !0 = $a, !1 = $a1, !2 = $a2, !3 = $a3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'sort'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
   12     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
   14     8        INIT_FCALL                                               'ksort'
          9        SEND_REF                                                 !0
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !2, $8
   16    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
   18    15        INIT_FCALL                                               'asort'
         16        SEND_REF                                                 !0
         17        DO_ICALL                                         $11     
         18        ASSIGN                                                   !3, $11
   20    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.39 ms | 1395 KiB | 21 Q