3v4l.org

run code in 300+ PHP versions simultaneously
<?php define(X,1/8); echo X."\n"; $y=1/8; echo $y."\n"; class foo { const bar = 1/8; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KCsVh
function name:  (null)
number of ops:  12
compiled vars:  !0 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        FETCH_CONSTANT                                   ~1      'X'
          2        SEND_VAL                                                 ~1
          3        SEND_VAL                                                 0.125
          4        DO_ICALL                                                 
    3     5        FETCH_CONSTANT                                   ~3      'X'
          6        CONCAT                                           ~4      ~3, '%0A'
          7        ECHO                                                     ~4
    4     8        ASSIGN                                                   !0, 0.125
    5     9        CONCAT                                           ~6      !0, '%0A'
         10        ECHO                                                     ~6
    9    11      > RETURN                                                   1

Class foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
265.7 ms | 1000 KiB | 14 Q