3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [3, 1, 2]; $b = [4, 5, 6]; usort($a, function() { usort($b, function() { return 0; }); return 1; });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VTDGb
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'usort'
          3        SEND_REF                                                 !0
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FVTDGb%3A6%240'
   12     5        SEND_VAL                                                 ~4
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FVTDGb%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VTDGb
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'usort'
          1        SEND_REF                                                 !0
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FVTDGb%3A7%241'
    9     3        SEND_VAL                                                 ~1
          4        DO_ICALL                                                 
   11     5      > RETURN                                                   1
   12     6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FVTDGb%3A6%240

Function %00%7Bclosure%7D%2Fin%2FVTDGb%3A7%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VTDGb
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E > > RETURN                                                   0
    9     1*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FVTDGb%3A7%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.24 ms | 1395 KiB | 15 Q