3v4l.org

run code in 300+ PHP versions simultaneously
<?php // PHP <= 7.0.1 var_dump(-0.0); // float(0) var_dump(+-0.0); // float(0) var_export(0.0); // 0 // PHP >= 7.0.2 var_dump(-0.0); // float(-0) var_dump(+-0.0); // float(-0) var_export(0.0); // 0.0 var_dump(-0.0 === +0.0); var_dump(1/-0.0); sqrt(-0.0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C8eOa
function name:  (null)
number of ops:  29
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 -0
          2        DO_ICALL                                                 
    5     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAL                                                 -0
          5        DO_ICALL                                                 
    6     6        INIT_FCALL                                               'var_export'
          7        SEND_VAL                                                 0
          8        DO_ICALL                                                 
    9     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAL                                                 -0
         11        DO_ICALL                                                 
   10    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAL                                                 -0
         14        DO_ICALL                                                 
   11    15        INIT_FCALL                                               'var_export'
         16        SEND_VAL                                                 0
         17        DO_ICALL                                                 
   13    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAL                                                 <true>
         20        DO_ICALL                                                 
   14    21        INIT_FCALL                                               'var_dump'
         22        DIV                                              ~7      1, -0
         23        SEND_VAL                                                 ~7
         24        DO_ICALL                                                 
   16    25        INIT_FCALL                                               'sqrt'
         26        SEND_VAL                                                 -0
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.6 ms | 1395 KiB | 19 Q