3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( array("id"=>3, "name"=>"peter"), array("id"=>1, "name"=>"steve"), array("id"=>5, "name"=>"damian"), array("id"=>9, "name"=>"ethan") ); $c = function($attribute) { return function($a, $b) { return 0; }; }; usort($data, $c("id")); print_r($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oEDqY
function name:  (null)
number of ops:  14
compiled vars:  !0 = $data, !1 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FoEDqY%3A10%240'
          2        ASSIGN                                                   !1, ~3
   16     3        INIT_FCALL                                               'usort'
          4        SEND_REF                                                 !0
          5        INIT_DYNAMIC_CALL                                        !1
          6        SEND_VAL_EX                                              'id'
          7        DO_FCALL                                      0  $5      
          8        SEND_VAR                                                 $5
          9        DO_ICALL                                                 
   18    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FoEDqY%3A10%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oEDqY
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $attribute
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FoEDqY%3A11%241'
   13     2      > RETURN                                                   ~1
   14     3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FoEDqY%3A10%240

Function %00%7Bclosure%7D%2Fin%2FoEDqY%3A11%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oEDqY
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   12     2      > RETURN                                                   0
   13     3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FoEDqY%3A11%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.96 ms | 941 KiB | 18 Q