3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { const A = 500; const B = 5E2; const C = 200 + 300; } var_dump(gettype(MyClass::A)); var_dump(gettype(MyClass::B)); var_dump(gettype(MyClass::C));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BHuHM
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        GET_TYPE                                         ~0      500
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    9     4        INIT_FCALL                                               'var_dump'
          5        GET_TYPE                                         ~2      500
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
   10     8        INIT_FCALL                                               'var_dump'
          9        GET_TYPE                                         ~4      500
         10        SEND_VAL                                                 ~4
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Class MyClass: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.32 ms | 1394 KiB | 15 Q