3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { const PRODUCT_STATUS_ACTIVE = 1; const PRODUCT_STATUS_INACTIVE = 0; const PRODUCT_STATUS_REJECT = 2; const PRODUCT_STATUS_DELETE = 3; const PRODUCT_STATUS_LABELS = [ self::PRODUCT_STATUS_INACTIVE => 'Inactive', self::PRODUCT_STATUS_ACTIVE => 'Active', self::PRODUCT_STATUS_REJECT => 'Rejected', self::PRODUCT_STATUS_DELETE => 'Deleted' ]; } $productStatus = 0; print_r( array_keys(A::PRODUCT_STATUS_LABELS));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/R4qeb
function name:  (null)
number of ops:  8
compiled vars:  !0 = $productStatus
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   ASSIGN                                                   !0, 0
   19     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'array_keys'
          3        SEND_VAL                                                 <array>
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.4 ms | 1009 KiB | 15 Q