3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array( '/something/foo7', '/something/special/foo22', '/something/foo333', '/something/special/foo4', '/something/foo5', '/something/special/boo96', ); array_multisort( array_map(fn($v) => str_contains($v, '/special/'), $array), array_keys($array), $array ); var_export($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jmiPi
function name:  (null)
number of ops:  18
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   12     1        INIT_FCALL                                                   'array_multisort'
   13     2        INIT_FCALL                                                   'array_map'
          3        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
          4        SEND_VAL                                                     ~2
          5        SEND_VAR                                                     !0
          6        DO_ICALL                                             $3      
          7        SEND_VAL                                                     $3
   14     8        INIT_FCALL                                                   'array_keys'
          9        SEND_VAR                                                     !0
         10        DO_ICALL                                             $4      
         11        SEND_VAL                                                     $4
   15    12        SEND_REF                                                     !0
   12    13        DO_ICALL                                                     
   17    14        INIT_FCALL                                                   'var_export'
         15        SEND_VAR                                                     !0
         16        DO_ICALL                                                     
         17      > 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/jmiPi
function name:  {closure:/in/jmiPi:13}
number of ops:  4
compiled vars:  !0 = $v
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   RECV                                                 !0      
          1        FRAMELESS_ICALL_2                str_contains        ~1      !0, '%2Fspecial%2F'
          2      > RETURN                                                       ~1
          3*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.31 ms | 1475 KiB | 18 Q