3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('FOO', 100); class FOO {} new FOO(); print 'ok' . FOO;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ANi3D
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'FOO'
          2        SEND_VAL                                                 100
          3        DO_ICALL                                                 
    4     4        NEW                                              $1      'FOO'
          5        DO_FCALL                                      0          
          6        FREE                                                     $1
    5     7        FETCH_CONSTANT                                   ~3      'FOO'
          8        CONCAT                                           ~4      'ok', ~3
          9        ECHO                                                     ~4
         10      > RETURN                                                   1

Class FOO: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.21 ms | 1398 KiB | 15 Q