3v4l.org

run code in 500+ PHP versions simultaneously
<?php enum IntervalBoundary { case ClosedOpen; case ClosedClosed; case OpenClosed; case OpenOpen; public const Fastest = self::ClosedOpen; } var_dump(IntervalBoundary::ClosedOpen === IntervalBoundary::Fastest); function foo(IntervalBoundary $b) { var_dump($b); } foo(IntervalBoundary::Fastest);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tT0Ho
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                                'intervalboundary'
   12     1        INIT_FCALL                                                   'var_dump'
          2        FETCH_CLASS_CONSTANT                                 ~0      'IntervalBoundary', 'ClosedOpen'
          3        FETCH_CLASS_CONSTANT                                 ~1      'IntervalBoundary', 'Fastest'
          4        IS_IDENTICAL                                         ~2      ~0, ~1
          5        SEND_VAL                                                     ~2
          6        DO_ICALL                                                     
   18     7        INIT_FCALL                                                   'foo'
          8        FETCH_CLASS_CONSTANT                                 ~4      'IntervalBoundary', 'Fastest'
          9        SEND_VAL                                                     ~4
         10        DO_FCALL                                          0          
         11      > RETURN                                                       1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tT0Ho
function name:  foo
number of ops:  5
compiled vars:  !0 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E >   RECV                                                 !0      
   15     1        INIT_FCALL                                                   'var_dump'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                                     
   16     4      > RETURN                                                       null

End of function foo

Class IntervalBoundary: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.76 ms | 1553 KiB | 15 Q