3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data=array(array(2,1),array(1,2),array(1,2),array(2,1),array(2,3),array(3,2),array(4,5)); $data = array_map(function($value) { sort($value); return serialize($value); }, $data); $data = array_unique($data); $data = array_map('unserialize', $data); array_walk($data, 'sort'); var_dump($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/61PNm
function name:  (null)
number of ops:  24
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'array_map'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F61PNm%3A5%240'
          3        SEND_VAL                                                 ~2
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    7     7        INIT_FCALL                                               'array_unique'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !0, $5
    8    11        INIT_FCALL                                               'array_map'
         12        SEND_VAL                                                 'unserialize'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $7      
         15        ASSIGN                                                   !0, $7
    9    16        INIT_FCALL                                               'array_walk'
         17        SEND_REF                                                 !0
         18        SEND_VAL                                                 'sort'
         19        DO_ICALL                                                 
   11    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2F61PNm%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
129.1 ms | 1401 KiB | 25 Q