3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.34 ms | 1397 KiB | 13 Q