3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "685484585478488466"; printf("Integer: %d\n", (integer) $text);printf("Float: %f\n", (float) $text);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MNkGq
function name:  (null)
number of ops:  12
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                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.7 ms | 1385 KiB | 15 Q