3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.19 ms | 1393 KiB | 13 Q