3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 17.92857142857142857142; $y=("$x" | bc -l); echo "scale=3; ($y+0.0005)/1" | bc -l;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DcEg1
function name:  (null)
number of ops:  16
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 17.9286
    3     1        CAST                                          6  ~3      !0
          2        FETCH_CONSTANT                                   ~4      'bc'
          3        FETCH_CONSTANT                                   ~5      'l'
          4        SUB                                              ~6      ~4, ~5
          5        BW_OR                                            ~7      ~3, ~6
          6        ASSIGN                                                   !1, ~7
    4     7        ROPE_INIT                                     3  ~10     'scale%3D3%3B+%28'
          8        ROPE_ADD                                      1  ~10     ~10, !1
          9        ROPE_END                                      2  ~9      ~10, '%2B0.0005%29%2F1'
         10        FETCH_CONSTANT                                   ~12     'bc'
         11        FETCH_CONSTANT                                   ~13     'l'
         12        SUB                                              ~14     ~12, ~13
         13        BW_OR                                            ~15     ~9, ~14
         14        ECHO                                                     ~15
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.7 ms | 1397 KiB | 13 Q