3v4l.org

run code in 300+ PHP versions simultaneously
<?php $home = 'F'; $data = [['name' => 'Falkirk','odds' => '2'],['name' => 'Draw','odds' => '3'],['name' => 'Chelsea','odds' => '5']]; $foo = usort($data, function ($a) use ($home) { return 'foo'; }); print_r($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eA64K
function name:  (null)
number of ops:  13
compiled vars:  !0 = $home, !1 = $data, !2 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'F'
    3     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'usort'
          3        SEND_REF                                                 !1
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FeA64K%3A5%240'
          5        BIND_LEXICAL                                             ~5, !0
    8     6        SEND_VAL                                                 ~5
          7        DO_ICALL                                         $6      
    5     8        ASSIGN                                                   !2, $6
   11     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.44 ms | 1395 KiB | 17 Q