3v4l.org

run code in 300+ PHP versions simultaneously
<?php $item['qty'] = 1; $priseone = "1 560 руб."; echo $priseone . "<br>"; $prise = preg_replace("/[^0-9]/","",$priseone); echo $prise . "<br>"; $prise = $prise / $item['qty']; echo $prise . "<br>"; $prise = $prise + 0.05 * $prise; echo $prise . "<br>"; $prise = round($prise, -1); echo $prise . "<br>"; $prise = $prise * $item['qty']; echo $prise . "<br>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qr8om
function name:  (null)
number of ops:  36
compiled vars:  !0 = $item, !1 = $priseone, !2 = $prise
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'qty'
          1        OP_DATA                                                  1
    3     2        ASSIGN                                                   !1, '1+560+%D1%80%D1%83%D0%B1.'
    4     3        CONCAT                                           ~5      !1, '%3Cbr%3E'
          4        ECHO                                                     ~5
    5     5        INIT_FCALL                                               'preg_replace'
          6        SEND_VAL                                                 '%2F%5B%5E0-9%5D%2F'
          7        SEND_VAL                                                 ''
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !2, $6
    6    11        CONCAT                                           ~8      !2, '%3Cbr%3E'
         12        ECHO                                                     ~8
    7    13        FETCH_DIM_R                                      ~9      !0, 'qty'
         14        DIV                                              ~10     !2, ~9
         15        ASSIGN                                                   !2, ~10
    8    16        CONCAT                                           ~12     !2, '%3Cbr%3E'
         17        ECHO                                                     ~12
    9    18        MUL                                              ~13     !2, 0.05
         19        ADD                                              ~14     !2, ~13
         20        ASSIGN                                                   !2, ~14
   10    21        CONCAT                                           ~16     !2, '%3Cbr%3E'
         22        ECHO                                                     ~16
   11    23        INIT_FCALL                                               'round'
         24        SEND_VAR                                                 !2
         25        SEND_VAL                                                 -1
         26        DO_ICALL                                         $17     
         27        ASSIGN                                                   !2, $17
   12    28        CONCAT                                           ~19     !2, '%3Cbr%3E'
         29        ECHO                                                     ~19
   13    30        FETCH_DIM_R                                      ~20     !0, 'qty'
         31        MUL                                              ~21     !2, ~20
         32        ASSIGN                                                   !2, ~21
   14    33        CONCAT                                           ~23     !2, '%3Cbr%3E'
         34        ECHO                                                     ~23
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.2 ms | 1396 KiB | 17 Q