3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rate = 80; $total_offer_pay = 2.05; $new_width = ($rate / 100) * $total_offer_pay; echo $new_width."\n"; $points = floatval($total_offer_pay) * 100; //lets make offers worth $1.20 appear as 120 points. echo $points; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PGCEs
function name:  (null)
number of ops:  12
compiled vars:  !0 = $rate, !1 = $total_offer_pay, !2 = $new_width, !3 = $points
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 80
    3     1        ASSIGN                                                   !1, 2.05
    5     2        DIV                                              ~6      !0, 100
          3        MUL                                              ~7      !1, ~6
          4        ASSIGN                                                   !2, ~7
    6     5        CONCAT                                           ~9      !2, '%0A'
          6        ECHO                                                     ~9
    7     7        CAST                                          5  ~10     !1
          8        MUL                                              ~11     ~10, 100
          9        ASSIGN                                                   !3, ~11
    8    10        ECHO                                                     !3
    9    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.7 ms | 1392 KiB | 13 Q