3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = 25.4598624; ini_set('precision', 14); var_dump((string) $f); ini_set('precision', 3); var_dump((string) $f); ini_set('precision', 0); var_dump((string) $f);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5GJWh
function name:  (null)
number of ops:  26
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 25.4599
    4     1        INIT_FCALL                                               'ini_set'
          2        SEND_VAL                                                 'precision'
          3        SEND_VAL                                                 14
          4        DO_ICALL                                                 
    5     5        INIT_FCALL                                               'var_dump'
          6        CAST                                          6  ~3      !0
          7        SEND_VAL                                                 ~3
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'ini_set'
         10        SEND_VAL                                                 'precision'
         11        SEND_VAL                                                 3
         12        DO_ICALL                                                 
    7    13        INIT_FCALL                                               'var_dump'
         14        CAST                                          6  ~6      !0
         15        SEND_VAL                                                 ~6
         16        DO_ICALL                                                 
    8    17        INIT_FCALL                                               'ini_set'
         18        SEND_VAL                                                 'precision'
         19        SEND_VAL                                                 0
         20        DO_ICALL                                                 
    9    21        INIT_FCALL                                               'var_dump'
         22        CAST                                          6  ~9      !0
         23        SEND_VAL                                                 ~9
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.38 ms | 1084 KiB | 15 Q