3v4l.org

run code in 300+ PHP versions simultaneously
<?php define(TRUE, false); define(FALSE, true); var_dump(true); var_dump(TRUE); var_dump(constant('TRUE')); var_dump(constant('true')); var_dump( true === TRUE ); echo constant("TEST"); var_dump(get_defined_constants(1));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Kg5hc
function name:  (null)
number of ops:  40
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 <true>
          2        SEND_VAL                                                 <false>
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 <false>
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                                 
    6    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'constant'
         16        SEND_VAL                                                 'TRUE'
         17        DO_ICALL                                         $4      
         18        SEND_VAR                                                 $4
         19        DO_ICALL                                                 
    8    20        INIT_FCALL                                               'var_dump'
         21        INIT_FCALL                                               'constant'
         22        SEND_VAL                                                 'true'
         23        DO_ICALL                                         $6      
         24        SEND_VAR                                                 $6
         25        DO_ICALL                                                 
   10    26        INIT_FCALL                                               'var_dump'
         27        SEND_VAL                                                 <true>
         28        DO_ICALL                                                 
   11    29        INIT_FCALL                                               'constant'
         30        SEND_VAL                                                 'TEST'
         31        DO_ICALL                                         $9      
         32        ECHO                                                     $9
   12    33        INIT_FCALL                                               'var_dump'
         34        INIT_FCALL                                               'get_defined_constants'
         35        SEND_VAL                                                 1
         36        DO_ICALL                                         $10     
         37        SEND_VAR                                                 $10
         38        DO_ICALL                                                 
         39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.22 ms | 1388 KiB | 21 Q