3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Month extends SplEnum { const __default = self::January; const January = 1; const February = 2; const March = 3; const April = 4; const May = 5; const June = 6; const July = 7; const August = 8; const September = 9; const October = 10; const November = 11; const December = 12; } $x = new Month(12); $y = new Month(1); $z = $x < $y; var_dump($z);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KsOSh
function name:  (null)
number of ops:  15
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CLASS                                            'month', 'splenum'
   20     1        NEW                                              $3      'Month'
          2        SEND_VAL_EX                                              12
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $3
   21     5        NEW                                              $6      'Month'
          6        SEND_VAL_EX                                              1
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $6
   23     9        IS_SMALLER                                       ~9      !0, !1
         10        ASSIGN                                                   !2, ~9
   25    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Class Month: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.94 ms | 1394 KiB | 15 Q