3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stringFilter = ['foo' => [ 'filtering' => [ "status = ['stuff' => 'foo']" ], ], ]; function applyFilter($object, $filtering) { foreach ($filtering as $filter) { eval("\$object->{$filter};"); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p4fmA
function name:  (null)
number of ops:  2
compiled vars:  !0 = $stringFilter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   15     1      > RETURN                                                   1

Function applyfilter:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/p4fmA
function name:  applyFilter
number of ops:  11
compiled vars:  !0 = $object, !1 = $filtering, !2 = $filter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   12     2      > FE_RESET_R                                       $3      !1, ->9
          3    > > FE_FETCH_R                                               $3, !2, ->9
   13     4    >   ROPE_INIT                                     3  ~5      '%24object-%3E'
          5        ROPE_ADD                                      1  ~5      ~5, !2
          6        ROPE_END                                      2  ~4      ~5, '%3B'
          7        INCLUDE_OR_EVAL                                          ~4, EVAL
   12     8      > JMP                                                      ->3
          9    >   FE_FREE                                                  $3
   15    10      > RETURN                                                   null

End of function applyfilter

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.94 ms | 1394 KiB | 13 Q