3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.84 ms | 1396 KiB | 19 Q