3v4l.org

run code in 500+ PHP versions simultaneously
<?php some_function(); function some_function(){ $nr = 2; $a = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); $a = array_filter($a, create_function('$e', ' return $e % unserialize(\''.str_replace("'", "\'", serialize($nr)).'\') == 0; ')); var_dump($a); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kLrYc
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                           'some_function'
          1        DO_FCALL                                          0          
   10     2      > RETURN                                                       1

Function some_function:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kLrYc
function name:  some_function
number of ops:  22
compiled vars:  !0 = $nr, !1 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                       !0, 2
    5     1        ASSIGN                                                       !1, <array>
    6     2        INIT_FCALL                                                   'array_filter'
          3        SEND_VAR                                                     !1
          4        INIT_FCALL_BY_NAME                                           'create_function'
          5        SEND_VAL_EX                                                  '%24e'
    7     6        INIT_FCALL                                                   'serialize'
          7        SEND_VAR                                                     !0
          8        DO_ICALL                                             $4      
          9        FRAMELESS_ICALL_3                str_replace         ~5      '%27', '%5C%27'
         10        OP_DATA                                                      $4
         11        CONCAT                                               ~6      '%0A++++++++return+%24e+%25+unserialize%28%27', ~5
         12        CONCAT                                               ~7      ~6, '%27%29+%3D%3D+0%3B%0A++++'
         13        SEND_VAL_EX                                                  ~7
    6    14        DO_FCALL                                          0  $8      
    7    15        SEND_VAR                                                     $8
    6    16        DO_ICALL                                             $9      
         17        ASSIGN                                                       !1, $9
    9    18        INIT_FCALL                                                   'var_dump'
         19        SEND_VAR                                                     !1
         20        DO_ICALL                                                     
   10    21      > RETURN                                                       null

End of function some_function

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.89 ms | 3333 KiB | 16 Q