3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('TEST',10,true); //define('TEST',10); echo TEST; // prints 10 define('TEST',20); // no error ???? echo TEST; //prints 20 echo tEst;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kVqBf
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'TEST'
          2        SEND_VAL                                                 10
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                                 
    6     5        FETCH_CONSTANT                                   ~1      'TEST'
          6        ECHO                                                     ~1
    7     7        INIT_FCALL                                               'define'
          8        SEND_VAL                                                 'TEST'
          9        SEND_VAL                                                 20
         10        DO_ICALL                                                 
    8    11        FETCH_CONSTANT                                   ~3      'TEST'
         12        ECHO                                                     ~3
    9    13        FETCH_CONSTANT                                   ~4      'tEst'
         14        ECHO                                                     ~4
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.71 ms | 1394 KiB | 15 Q