3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1009.1; for($a = .5; $a < 20; $a = $a + 0.5){ echo $a . " = " . number_format(round($a,-1)) . " <br> " ; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
Branch analysis from position: 3
filename:       /in/GRF99
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1009.1
    5     1        ASSIGN                                                   !0, 0.5
          2      > JMP                                                      ->16
    7     3    >   CONCAT                                           ~3      !0, '+%3D+'
          4        INIT_FCALL                                               'number_format'
          5        INIT_FCALL                                               'round'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 -1
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
         10        DO_ICALL                                         $5      
         11        CONCAT                                           ~6      ~3, $5
         12        CONCAT                                           ~7      ~6, '+%3Cbr%3E+'
         13        ECHO                                                     ~7
    5    14        ADD                                              ~8      !0, 0.5
         15        ASSIGN                                                   !0, ~8
         16    >   IS_SMALLER                                               !0, 20
         17      > JMPNZ                                                    ~10, ->3
    9    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.29 ms | 1395 KiB | 17 Q