3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '\'\\\'test\\\'\',\'\\\'te\$t2\\\'\',\'\"test3\"\''; $array = eval("[\"" . $string . "\"]");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hqXhC
function name:  (null)
number of ops:  6
compiled vars:  !0 = $string, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%27%5C%27test%5C%27%27%2C%27%5C%27te%5C%24t2%5C%27%27%2C%27%5C%22test3%5C%22%27'
    4     1        CONCAT                                           ~3      '%5B%22', !0
          2        CONCAT                                           ~4      ~3, '%22%5D'
          3        INCLUDE_OR_EVAL                                  $5      ~4, EVAL
          4        ASSIGN                                                   !1, $5
          5      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.86 ms | 1396 KiB | 13 Q