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 % '.$nr.' == 0; ')); var_dump($a); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8binh
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/8binh
function name:  some_function
number of ops:  17
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        CONCAT                                           ~4      '%0A++++++++return+%24e+%25+', !0
          7        CONCAT                                           ~5      ~4, '+%3D%3D+0%3B%0A++++'
          8        SEND_VAL_EX                                              ~5
          9        DO_FCALL                                      0  $6      
         10        SEND_VAR                                                 $6
         11        DO_ICALL                                         $7      
    6    12        ASSIGN                                                   !1, $7
    9    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
   10    16      > RETURN                                                   null

End of function some_function

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.5 ms | 1399 KiB | 17 Q