3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(array_filter([1,2,3], function(&$v) {$v = 17;return true;}));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T0fvi
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'var_dump'
          1        INIT_FCALL                                                   'array_filter'
          2        SEND_VAL                                                     <array>
          3        DECLARE_LAMBDA_FUNCTION                              ~0      [0]
          4        SEND_VAL                                                     ~0
          5        DO_ICALL                                             $1      
          6        SEND_VAR                                                     $1
          7        DO_ICALL                                                     
          8      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T0fvi
function name:  {closure:/in/T0fvi:3}
number of ops:  4
compiled vars:  !0 = $v
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
          0  E >   RECV                                                 !0      
          1        ASSIGN                                                       !0, 17
          2      > RETURN                                                       <true>
          3*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
172.88 ms | 2215 KiB | 15 Q