3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'i am a $b'; $b = 'boy'; eval('$c = "' . $a . '";'); echo $c;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kfdrF
function name:  (null)
number of ops:  7
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'i+am+a+%24b'
    4     1        ASSIGN                                                   !1, 'boy'
    5     2        CONCAT                                           ~5      '%24c+%3D+%22', !0
          3        CONCAT                                           ~6      ~5, '%22%3B'
          4        INCLUDE_OR_EVAL                                          ~6, EVAL
    6     5        ECHO                                                     !2
    7     6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.89 ms | 993 KiB | 13 Q