3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.28 ms | 1394 KiB | 19 Q