3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
172.3 ms | 2042 KiB | 16 Q