3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "685484585478488466"; printf("Integer: %d\n", (integer) $text);printf("Float: %f\n", (float) $text); echo "\n"; gmp_strval((integer) $text); echo "\n"; gmp_strval((float) $text);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZETvo
function name:  (null)
number of ops:  22
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '685484585478488466'
    4     1        INIT_FCALL                                               'printf'
          2        SEND_VAL                                                 'Integer%3A+%25d%0A'
          3        CAST                                          4  ~2      !0
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
          6        INIT_FCALL                                               'printf'
          7        SEND_VAL                                                 'Float%3A+++%25f%0A'
          8        CAST                                          5  ~4      !0
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                                 
    5    11        ECHO                                                     '%0A'
    6    12        INIT_FCALL_BY_NAME                                       'gmp_strval'
         13        CAST                                          4  ~6      !0
         14        SEND_VAL_EX                                              ~6
         15        DO_FCALL                                      0          
    7    16        ECHO                                                     '%0A'
    8    17        INIT_FCALL_BY_NAME                                       'gmp_strval'
         18        CAST                                          5  ~8      !0
         19        SEND_VAL_EX                                              ~8
         20        DO_FCALL                                      0          
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.26 ms | 1395 KiB | 15 Q