3v4l.org

run code in 300+ PHP versions simultaneously
<?php // 7f ef ff ff ff ff ff ff (Max double) // https://en.wikipedia.org/wiki/Double-precision_floating-point_format#Double-precision_examples // 7f = 127 // ef = 239 // ff = 255 $str = chr(127) . chr(239) . str_repeat(chr(255), 6); echo $str; echo (string) unpack('d', $str)[1], PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HP3PX
function name:  (null)
number of ops:  16
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'str_repeat'
          1        SEND_VAL                                                 '%FF'
          2        SEND_VAL                                                 6
          3        DO_ICALL                                         $1      
          4        CONCAT                                           ~2      '%7F%EF', $1
          5        ASSIGN                                                   !0, ~2
   10     6        ECHO                                                     !0
   11     7        INIT_FCALL                                               'unpack'
          8        SEND_VAL                                                 'd'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        FETCH_DIM_R                                      ~5      $4, 1
         12        CAST                                          6  ~6      ~5
         13        ECHO                                                     ~6
         14        ECHO                                                     '%0A'
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.33 ms | 1394 KiB | 17 Q