3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.24 ms | 1394 KiB | 15 Q