3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.93 ms | 1395 KiB | 17 Q