3v4l.org

run code in 300+ 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:  25
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                                               'str_replace'
          7        SEND_VAL                                                 '%27'
          8        SEND_VAL                                                 '%5C%27'
          9        INIT_FCALL                                               'serialize'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                         $5      
         14        CONCAT                                           ~6      '%0A++++++++return+%24e+%25+unserialize%28%27', $5
         15        CONCAT                                           ~7      ~6, '%27%29+%3D%3D+0%3B%0A++++'
         16        SEND_VAL_EX                                              ~7
         17        DO_FCALL                                      0  $8      
         18        SEND_VAR                                                 $8
         19        DO_ICALL                                         $9      
    6    20        ASSIGN                                                   !1, $9
    9    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                                 
   10    24      > RETURN                                                   null

End of function some_function

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.04 ms | 1396 KiB | 21 Q