3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ends = get_defined_functions()['internal']; usort($ends, function($x, $y) { return strcasecmp($x[strlen($x)-1], $y[strlen($y)-1]); }); var_dump($ends);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v3c8E
function name:  (null)
number of ops:  13
compiled vars:  !0 = $ends
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'get_defined_functions'
          1        DO_ICALL                                         $1      
          2        FETCH_DIM_R                                      ~2      $1, 'internal'
          3        ASSIGN                                                   !0, ~2
    3     4        INIT_FCALL                                               'usort'
          5        SEND_REF                                                 !0
          6        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fv3c8E%3A3%240'
    6     7        SEND_VAL                                                 ~4
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fv3c8E%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v3c8E
function name:  {closure}
number of ops:  14
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        INIT_FCALL                                               'strcasecmp'
          3        STRLEN                                           ~2      !0
          4        SUB                                              ~3      ~2, 1
          5        FETCH_DIM_R                                      ~4      !0, ~3
          6        SEND_VAL                                                 ~4
          7        STRLEN                                           ~5      !1
          8        SUB                                              ~6      ~5, 1
          9        FETCH_DIM_R                                      ~7      !1, ~6
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                         $8      
         12      > RETURN                                                   $8
    6    13*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fv3c8E%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156 ms | 1396 KiB | 21 Q