3v4l.org

run code in 300+ PHP versions simultaneously
Predict the output of the following program code? <?php $i=1; $j=2; $s= $i+$j; echo $s; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZCl5k
function name:  (null)
number of ops:  7
compiled vars:  !0 = $i, !1 = $j, !2 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     'Predict+the+output+of+the+following+program+code%3F%0A%0A+'
    4     1        ASSIGN                                                   !0, 1
          2        ASSIGN                                                   !1, 2
    5     3        ADD                                              ~5      !0, !1
          4        ASSIGN                                                   !2, ~5
    6     5        ECHO                                                     !2
    7     6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.6 ms | 1392 KiB | 13 Q