3v4l.org

run code in 300+ PHP versions simultaneously
<?php $closure1 = static fn () => null; $closure2 = static fn () => null; var_dump($closure1 == $closure2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1E5Fj
function name:  (null)
number of ops:  9
compiled vars:  !0 = $closure1, !1 = $closure2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                          ~2      [0]
          1        ASSIGN                                                   !0, ~2
    4     2        DECLARE_LAMBDA_FUNCTION                          ~4      [1]
          3        ASSIGN                                                   !1, ~4
    6     4        INIT_FCALL                                               'var_dump'
          5        IS_EQUAL                                         ~6      !0, !1
          6        SEND_VAL                                                 ~6
          7        DO_ICALL                                                 
          8      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1E5Fj
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   null
          1*     > RETURN                                                   null

End of Dynamic Function 0

Dynamic Function 1
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1E5Fj
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   null
          1*     > RETURN                                                   null

End of Dynamic Function 1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.63 ms | 1009 KiB | 14 Q