3v4l.org

run code in 300+ PHP versions simultaneously
<?php $duration = floor(5.13); $netUnitPrice = 2250.00; $totalValue = $duration * $netUnitPrice; var_dump($totalValue); // expected 11550
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k3XI2
function name:  (null)
number of ops:  11
compiled vars:  !0 = $duration, !1 = $netUnitPrice, !2 = $totalValue
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'floor'
          1        SEND_VAL                                                 5.13
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        ASSIGN                                                   !1, 2250
    6     5        MUL                                              ~6      !0, !1
          6        ASSIGN                                                   !2, ~6
    8     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
    9    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.73 ms | 1394 KiB | 17 Q