3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = $b = 1; printf("$a is %d\n$b is $d", $a, $b); $b = 3; printf("$a is %d\n$b is $d", $a, $b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cpMS5
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $b, !2 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                           ~3      !1, 1
          1        ASSIGN                                                   !0, ~3
    4     2        INIT_FCALL                                               'printf'
          3        ROPE_INIT                                     5  ~6      !0
          4        ROPE_ADD                                      1  ~6      ~6, '+is+%25d%0A'
          5        ROPE_ADD                                      2  ~6      ~6, !1
          6        ROPE_ADD                                      3  ~6      ~6, '+is+'
          7        ROPE_END                                      4  ~5      ~6, !2
          8        SEND_VAL                                                 ~5
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
    5    12        ASSIGN                                                   !1, 3
    6    13        INIT_FCALL                                               'printf'
         14        ROPE_INIT                                     5  ~12     !0
         15        ROPE_ADD                                      1  ~12     ~12, '+is+%25d%0A'
         16        ROPE_ADD                                      2  ~12     ~12, !1
         17        ROPE_ADD                                      3  ~12     ~12, '+is+'
         18        ROPE_END                                      4  ~11     ~12, !2
         19        SEND_VAL                                                 ~11
         20        SEND_VAR                                                 !0
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.79 ms | 1395 KiB | 15 Q