3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num1 = '2oranges'; $num2 = '3oranges'; $sum = $num1 + $num2; echo "I ate {$sum} oranges today!";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qFYYq
function name:  (null)
number of ops:  9
compiled vars:  !0 = $num1, !1 = $num2, !2 = $sum
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2oranges'
    3     1        ASSIGN                                                   !1, '3oranges'
    4     2        ADD                                              ~5      !0, !1
          3        ASSIGN                                                   !2, ~5
    5     4        ROPE_INIT                                     3  ~8      'I+ate+'
          5        ROPE_ADD                                      1  ~8      ~8, !2
          6        ROPE_END                                      2  ~7      ~8, '+oranges+today%21'
          7        ECHO                                                     ~7
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.14 ms | 1392 KiB | 13 Q