3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num1 = 10; $num2 = 15; $num4 = 'snarf'; $num3 = ($num1 + $num2) * $num1; echo $num4;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j0Fk3
function name:  (null)
number of ops:  8
compiled vars:  !0 = $num1, !1 = $num2, !2 = $num4, !3 = $num3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10
    4     1        ASSIGN                                                   !1, 15
    5     2        ASSIGN                                                   !2, 'snarf'
    6     3        ADD                                              ~7      !0, !1
          4        MUL                                              ~8      !0, ~7
          5        ASSIGN                                                   !3, ~8
    8     6        ECHO                                                     !2
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
192.93 ms | 1397 KiB | 13 Q