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) . chr(255) . ' ', 3); 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/EQoqM
function name:  (null)
number of ops:  15
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'str_repeat'
          1        SEND_VAL                                                 '%FF%FF+'
          2        SEND_VAL                                                 3
          3        DO_ICALL                                         $1      
          4        CONCAT                                           ~2      '%7F%EF+', $1
          5        ASSIGN                                                   !0, ~2
   10     6        INIT_FCALL                                               'unpack'
          7        SEND_VAL                                                 'd'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        FETCH_DIM_R                                      ~5      $4, 1
         11        CAST                                          6  ~6      ~5
         12        ECHO                                                     ~6
         13        ECHO                                                     '%0A'
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.49 ms | 1394 KiB | 17 Q