3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 16423.42; $m = $n * 100.0; printf("%f\n", $m); printf("%1.6f\n", $m); printf("%1.10f\n", $m); echo floor($m) . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OuZJ7
function name:  (null)
number of ops:  21
compiled vars:  !0 = $n, !1 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 16423.4
    4     1        MUL                                              ~3      !0, 100
          2        ASSIGN                                                   !1, ~3
    6     3        INIT_FCALL                                               'printf'
          4        SEND_VAL                                                 '%25f%0A'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'printf'
          8        SEND_VAL                                                 '%251.6f%0A'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
    8    11        INIT_FCALL                                               'printf'
         12        SEND_VAL                                                 '%251.10f%0A'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
    9    15        INIT_FCALL                                               'floor'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $8      
         18        CONCAT                                           ~9      $8, '%0A'
         19        ECHO                                                     ~9
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.3 ms | 1395 KiB | 17 Q