3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.78 ms | 1009 KiB | 14 Q