3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); $value = 1616497508.79562548484415745842262445584; var_dump( json_encode($value), number_format($value, 6, '.', ''), DateTimeImmutable::createFromFormat( 'U.u', json_encode($value) ), DateTimeImmutable::createFromFormat( 'U.u', number_format($value, 6, '.', '') ), );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/imDlQ
function name:  (null)
number of ops:  34
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 1.6165e+9
    6     1        INIT_FCALL                                               'var_dump'
    7     2        INIT_FCALL                                               'json_encode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
    8     6        INIT_FCALL                                               'number_format'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 6
          9        SEND_VAL                                                 '.'
         10        SEND_VAL                                                 ''
         11        DO_ICALL                                         $3      
         12        SEND_VAR                                                 $3
    9    13        INIT_STATIC_METHOD_CALL                                  'DateTimeImmutable', 'createFromFormat'
   10    14        SEND_VAL                                                 'U.u'
   11    15        INIT_FCALL                                               'json_encode'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $4      
         18        SEND_VAR                                                 $4
         19        DO_FCALL                                      0  $5      
         20        SEND_VAR                                                 $5
   13    21        INIT_STATIC_METHOD_CALL                                  'DateTimeImmutable', 'createFromFormat'
   14    22        SEND_VAL                                                 'U.u'
   15    23        INIT_FCALL                                               'number_format'
         24        SEND_VAR                                                 !0
         25        SEND_VAL                                                 6
         26        SEND_VAL                                                 '.'
         27        SEND_VAL                                                 ''
         28        DO_ICALL                                         $6      
         29        SEND_VAR                                                 $6
         30        DO_FCALL                                      0  $7      
         31        SEND_VAR                                                 $7
         32        DO_ICALL                                                 
   17    33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.81 ms | 1396 KiB | 19 Q