3v4l.org

run code in 500+ PHP versions simultaneously
<?php $as = [0, 1, 2, 5, 7, 10, 16, 49]; $x = 5; $y = 10; foreach ($as as $a) { echo "$a => " . (ceil($a / $x) * $y) . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 16
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 16
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/aJWuY
function name:  (null)
number of ops:  18
compiled vars:  !0 = $as, !1 = $x, !2 = $y, !3 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ASSIGN                                                       !1, 5
    5     2        ASSIGN                                                       !2, 10
    6     3      > FE_RESET_R                                           $7      !0, ->16
          4    > > FE_FETCH_R                                                   $7, !3, ->16
    7     5    >   NOP                                                          
          6        FAST_CONCAT                                          ~8      !3, '+%3D%3E+'
          7        INIT_FCALL                                                   'ceil'
          8        DIV                                                  ~9      !3, !1
          9        SEND_VAL                                                     ~9
         10        DO_ICALL                                             $10     
         11        MUL                                                  ~11     !2, $10
         12        CONCAT                                               ~12     ~8, ~11
         13        CONCAT                                               ~13     ~12, '%0A'
         14        ECHO                                                         ~13
    6    15      > JMP                                                          ->4
         16    >   FE_FREE                                                      $7
    8    17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
226.63 ms | 2002 KiB | 14 Q