3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($num = 74.30; $num < 74.41; $num += .01) { echo var_export($num, true) . sprintf(' => %.02f', ceil($num * 20) / 20) . "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 2
Branch analysis from position: 21
Branch analysis from position: 2
filename:       /in/Ao1oG
function name:  (null)
number of ops:  22
compiled vars:  !0 = $num
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 74.3
          1      > JMP                                                      ->19
    4     2    >   INIT_FCALL                                               'var_export'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $2      
          6        INIT_FCALL                                               'sprintf'
          7        SEND_VAL                                                 '+%3D%3E+%25.02f'
          8        INIT_FCALL                                               'ceil'
          9        MUL                                              ~3      !0, 20
         10        SEND_VAL                                                 ~3
         11        DO_ICALL                                         $4      
         12        DIV                                              ~5      $4, 20
         13        SEND_VAL                                                 ~5
         14        DO_ICALL                                         $6      
         15        CONCAT                                           ~7      $2, $6
         16        CONCAT                                           ~8      ~7, '%0A'
         17        ECHO                                                     ~8
    3    18        ASSIGN_OP                                     1          !0, 0.01
         19    >   IS_SMALLER                                               !0, 74.41
         20      > JMPNZ                                                    ~10, ->2
    5    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.56 ms | 1007 KiB | 16 Q