3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num = 1; define("ONE",$num); var_dump(ONE);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZYDYV
function name:  (null)
number of ops:  10
compiled vars:  !0 = $num
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    4     1        INIT_FCALL                                               'define'
          2        SEND_VAL                                                 'ONE'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    5     5        INIT_FCALL                                               'var_dump'
          6        FETCH_CONSTANT                                   ~3      'ONE'
          7        SEND_VAL                                                 ~3
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.14 ms | 1394 KiB | 17 Q