3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'test '; eval( "\$str = \"$str ok \";die('ko')" ); echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fuXcE
function name:  (null)
number of ops:  7
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'test+'
    3     1        ROPE_INIT                                     3  ~3      '%24str+%3D+%22'
          2        ROPE_ADD                                      1  ~3      ~3, !0
          3        ROPE_END                                      2  ~2      ~3, '++ok+%22%3Bdie%28%27ko%27%29'
          4        INCLUDE_OR_EVAL                                          ~2, EVAL
    4     5        ECHO                                                     !0
          6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.1 ms | 1392 KiB | 13 Q