3v4l.org

run code in 300+ PHP versions simultaneously
<?php print \bin2hex(\pack("d", 0.0)) . "\n"; print \bin2hex(\pack("d", -0.0)) . "\n"; print \bin2hex(\pack("d", -1.0 * 0.0)) . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lh87d
function name:  (null)
number of ops:  28
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'bin2hex'
          1        INIT_FCALL                                               'pack'
          2        SEND_VAL                                                 'd'
          3        SEND_VAL                                                 0
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                         $1      
          7        CONCAT                                           ~2      $1, '%0A'
          8        ECHO                                                     ~2
    4     9        INIT_FCALL                                               'bin2hex'
         10        INIT_FCALL                                               'pack'
         11        SEND_VAL                                                 'd'
         12        SEND_VAL                                                 -0
         13        DO_ICALL                                         $3      
         14        SEND_VAR                                                 $3
         15        DO_ICALL                                         $4      
         16        CONCAT                                           ~5      $4, '%0A'
         17        ECHO                                                     ~5
    5    18        INIT_FCALL                                               'bin2hex'
         19        INIT_FCALL                                               'pack'
         20        SEND_VAL                                                 'd'
         21        SEND_VAL                                                 -0
         22        DO_ICALL                                         $6      
         23        SEND_VAR                                                 $6
         24        DO_ICALL                                         $7      
         25        CONCAT                                           ~8      $7, '%0A'
         26        ECHO                                                     ~8
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.28 ms | 1446 KiB | 15 Q