3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sortables = ['admin11class', 'adminclass12', '13adminclass']; usort($sortables, function($a, $b) { preg_match_all('!\d+!', $a, $matchesA); preg_match_all('!\d+!', $b, $matchesB); return $matchesA[0] > $matchesB[0]; }); var_dump($sortables);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DN315
function name:  (null)
number of ops:  10
compiled vars:  !0 = $sortables
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'usort'
          2        SEND_REF                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
   10     4        SEND_VAL                                                 ~2
    5     5        DO_ICALL                                                 
   12     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DN315
function name:  {closure}
number of ops:  17
compiled vars:  !0 = $a, !1 = $b, !2 = $matchesA, !3 = $matchesB
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAL                                                 '%21%5Cd%2B%21'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'preg_match_all'
          8        SEND_VAL                                                 '%21%5Cd%2B%21'
          9        SEND_VAR                                                 !1
         10        SEND_REF                                                 !3
         11        DO_ICALL                                                 
    9    12        FETCH_DIM_R                                      ~6      !2, 0
         13        FETCH_DIM_R                                      ~7      !3, 0
         14        IS_SMALLER                                       ~8      ~7, ~6
         15      > RETURN                                                   ~8
   10    16*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.18 ms | 1001 KiB | 16 Q