General relativistic magnetohydrodynamic simulations of binary neutron star mergers with the APR4 equation of state