3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.66 ms | 1395 KiB | 19 Q