3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=['z','Z','ą', 'Ą', 'a', 'o','ó','Ó','ł','Ł','ź','A','Ż','l','ę','L','e','ć','ń','ś']; $a=array_map($a, function($a){return mb_strtolower($a);}); $coll = new Collator( 'pl_PL' ); var_export( $a ); $coll->sort( $a ); var_export( $a );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Np53K
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $coll
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'array_map'
          2        SEND_VAR                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FNp53K%3A4%240'
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
    5     7        NEW                                              $6      'Collator'
          8        SEND_VAL_EX                                              'pl_PL'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $6
    7    11        INIT_FCALL                                               'var_export'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    8    14        INIT_METHOD_CALL                                         !1, 'sort'
         15        SEND_VAR_EX                                              !0
         16        DO_FCALL                                      0          
    9    17        INIT_FCALL                                               'var_export'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.26 ms | 1396 KiB | 19 Q