3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = range('a', 'z'); $ret = uksort($array, function ($a, $b) use (&$array) { unset($array[$a]); return 0; }); var_dump($ret, $array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CaINM
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array, !1 = $ret
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 'a'
          2        SEND_VAL                                                 'z'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        INIT_FCALL                                               'uksort'
          6        SEND_REF                                                 !0
          7        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FCaINM%3A4%240'
          8        BIND_LEXICAL                                             ~4, !0
    7     9        SEND_VAL                                                 ~4
         10        DO_ICALL                                         $5      
    4    11        ASSIGN                                                   !1, $5
    9    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FCaINM%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CaINM
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $a, !1 = $b, !2 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        BIND_STATIC                                              !2
    5     3        UNSET_DIM                                                !2, !0
    6     4      > RETURN                                                   0
    7     5*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FCaINM%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.21 ms | 1395 KiB | 19 Q